Explorar o código

if we moved definition under private area, than we need to use only public API for that, to be able to redefine it is subclasses

ever.zet %!s(int64=14) %!d(string=hai) anos
pai
achega
dab8e5888f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Console/Application.php

+ 1 - 1
src/Symfony/Component/Console/Application.php

@@ -235,7 +235,7 @@ class Application
             '<comment>Options:</comment>',
         );
 
-        foreach ($this->definition->getOptions() as $option) {
+        foreach ($this->getDefinition()->getOptions() as $option) {
             $messages[] = sprintf('  %-29s %s %s',
                 '<info>--'.$option->getName().'</info>',
                 $option->getShortcut() ? '<info>-'.$option->getShortcut().'</info>' : '  ',