1 | <?php |
||
19 | class PHPChunkitApplication |
||
20 | { |
||
21 | /** |
||
22 | * @var Container |
||
23 | */ |
||
24 | private $container; |
||
25 | |||
26 | /** |
||
27 | * @var Application |
||
28 | */ |
||
29 | private $symfonyApplication; |
||
30 | |||
31 | private static $commands = [ |
||
32 | 'phpchunkit.command.build_sandbox', |
||
33 | 'phpchunkit.command.create_databases', |
||
34 | 'phpchunkit.command.test_watcher', |
||
35 | 'phpchunkit.command.run', |
||
36 | 'phpchunkit.command.generate_test', |
||
37 | ]; |
||
38 | |||
39 | 1 | public function __construct(Container $container) |
|
44 | |||
45 | 1 | public function run(InputInterface $input, OutputInterface $output) : int |
|
56 | |||
57 | 1 | public function registerCommand(string $serviceName) |
|
67 | |||
68 | protected function runSymfonyApplication( |
||
74 | |||
75 | 1 | private function register(string $name) : SymfonyCommand |
|
79 | } |
||
80 |