Skip to content

Commit

Permalink
Clarify comment about collection builders.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Sep 10, 2016
1 parent 2cce584 commit fecc4e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ protected function instantiateCommandClass($commandClass)
$commandClass = $container->get($commandFileName);
}
// If the command class is a Builder Aware Interface, then
//
// ensure that it has a builder. Every command class needs
// its own collection builder, as they have references to each other.
if ($commandClass instanceof BuilderAwareInterface) {
$builder = $container->get('collectionBuilder', [$commandClass]);
$commandClass->setBuilder($builder);
Expand Down

0 comments on commit fecc4e3

Please sign in to comment.