Index: branches/5.3.x/core/kernel/Console/Command/AbstractCommand.php =================================================================== diff -u -N -r16282 -r16283 --- branches/5.3.x/core/kernel/Console/Command/AbstractCommand.php (.../AbstractCommand.php) (revision 16282) +++ branches/5.3.x/core/kernel/Console/Command/AbstractCommand.php (.../AbstractCommand.php) (revision 16283) @@ -1,6 +1,6 @@ initDependencies(); + + return array(); + } + + /** + * Return possible values for the named argument + * + * @param string $argumentName Argument name. + * @param CompletionContext $context Completion context. + * + * @return array + */ + public function completeArgumentValues($argumentName, CompletionContext $context) + { + $this->initDependencies(); + + return array(); + } + + /** * Perform additional validation of the input. * * @param InputInterface $input An InputInterface instance. @@ -85,6 +117,18 @@ // Don't use factory because of "classmap:rebuild" command. $this->io = new ConsoleIO($input, $output, $this->getHelperSet()); + + $this->initDependencies(); } + /** + * Initializes dependencies. + * + * @return void + */ + protected function initDependencies() + { + + } + } Index: branches/5.3.x/core/kernel/Console/Command/RunEventCommand.php =================================================================== diff -u -N -r16282 -r16283 --- branches/5.3.x/core/kernel/Console/Command/RunEventCommand.php (.../RunEventCommand.php) (revision 16282) +++ branches/5.3.x/core/kernel/Console/Command/RunEventCommand.php (.../RunEventCommand.php) (revision 16283) @@ -1,6 +1,6 @@ getCurrentWord(); @@ -120,7 +108,7 @@ return $suggestions; } - return array(); + return $suggestions; } } Index: branches/5.3.x/core/kernel/Console/Command/BuildClassMapCommand.php =================================================================== diff -u -N -r16282 -r16283 --- branches/5.3.x/core/kernel/Console/Command/BuildClassMapCommand.php (.../BuildClassMapCommand.php) (revision 16282) +++ branches/5.3.x/core/kernel/Console/Command/BuildClassMapCommand.php (.../BuildClassMapCommand.php) (revision 16283) @@ -1,6 +1,6 @@ getModules(); } - return array(); + return $suggestions; } /** @@ -120,17 +121,4 @@ return array_diff($modules, array('In-Portal')); } - /** - * Return possible values for the named argument. - * - * @param string $argumentName Argument name. - * @param CompletionContext $context Completion context. - * - * @return array - */ - public function completeArgumentValues($argumentName, CompletionContext $context) - { - return array(); - } - } Index: branches/5.3.x/core/install/cache/class_structure.php =================================================================== diff -u -N -r16282 -r16283 --- branches/5.3.x/core/install/cache/class_structure.php (.../class_structure.php) (revision 16282) +++ branches/5.3.x/core/install/cache/class_structure.php (.../class_structure.php) (revision 16283) @@ -846,14 +846,14 @@ 'extends' => array( 0 => 'Symfony\\Component\\Console\\Command\\Command', 1 => 'InPortal\\Core\\kernel\\Console\\Command\\IConsoleCommand', + 2 => 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\Completion\\CompletionAwareInterface', ), ), 'InPortal\\Core\\kernel\\Console\\Command\\BuildClassMapCommand' => array( 'type' => 1, 'modifiers' => 0, 'extends' => array( 0 => 'InPortal\\Core\\kernel\\Console\\Command\\AbstractCommand', - 1 => 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\Completion\\CompletionAwareInterface', ), ), 'InPortal\\Core\\kernel\\Console\\Command\\CompletionCommand' => array( @@ -879,15 +879,13 @@ 'modifiers' => 0, 'extends' => array( 0 => 'InPortal\\Core\\kernel\\Console\\Command\\AbstractCommand', - 1 => 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\Completion\\CompletionAwareInterface', ), ), 'InPortal\\Core\\kernel\\Console\\Command\\RunScheduledTaskCommand' => array( 'type' => 1, 'modifiers' => 0, 'extends' => array( 0 => 'InPortal\\Core\\kernel\\Console\\Command\\AbstractCommand', - 1 => 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\Completion\\CompletionAwareInterface', ), ), 'InPortal\\Core\\kernel\\Console\\ConsoleApplication' => array( Index: branches/5.3.x/core/kernel/Console/Command/RunScheduledTaskCommand.php =================================================================== diff -u -N -r16282 -r16283 --- branches/5.3.x/core/kernel/Console/Command/RunScheduledTaskCommand.php (.../RunScheduledTaskCommand.php) (revision 16282) +++ branches/5.3.x/core/kernel/Console/Command/RunScheduledTaskCommand.php (.../RunScheduledTaskCommand.php) (revision 16283) @@ -1,6 +1,6 @@ getScheduledTaskNames(); } - return array(); + return $suggestions; } /**