1 | <?php |
||
15 | class Application extends \Symfony\Component\Console\Application |
||
16 | { |
||
17 | /** @var ContainerBuilder */ |
||
18 | private $container; |
||
19 | |||
20 | /** |
||
21 | * @param string $name |
||
22 | * @param string $version |
||
23 | */ |
||
24 | public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') |
||
29 | |||
30 | |||
31 | |||
32 | private function boot() |
||
43 | |||
44 | protected function registerCommands() |
||
50 | |||
51 | |||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | private function getConfigPath() |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | private function getComposerBinPath() |
||
68 | |||
69 | |||
70 | |||
71 | private function registerChecks() |
||
77 | |||
78 | /** |
||
79 | * @param string $commandId |
||
80 | * @return Command |
||
81 | */ |
||
82 | protected function getCommandForId($commandId) |
||
90 | } |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: