1 | <?php declare(strict_types = 1); |
||
17 | final class ConsoleApplication |
||
18 | { |
||
19 | /** |
||
20 | * @var SymfonyConsoleApplication |
||
21 | */ |
||
22 | private $console; |
||
23 | |||
24 | /** |
||
25 | * @var Container |
||
26 | */ |
||
27 | private $container; |
||
28 | |||
29 | /** |
||
30 | * ConsoleApplication constructor. |
||
31 | * |
||
32 | * @param Kernel $kernel |
||
33 | */ |
||
34 | 1 | public function __construct(Kernel $kernel) |
|
39 | |||
40 | /** |
||
41 | * Runs Console Application. |
||
42 | * |
||
43 | * @param InputInterface $input |
||
44 | * @param OutputInterface $output |
||
45 | * @return int |
||
46 | */ |
||
47 | public function run(InputInterface $input, OutputInterface $output): int |
||
51 | |||
52 | /** |
||
53 | * Initiates Symfony Console Application. |
||
54 | * |
||
55 | * @param string $name |
||
56 | * @param string $version |
||
57 | */ |
||
58 | 1 | private function initConsole(string $name, string $version) |
|
72 | |||
73 | /** |
||
74 | * Resolves command object from class name. |
||
75 | * |
||
76 | * @param string $commandClass |
||
77 | * @return mixed |
||
78 | */ |
||
79 | private function resolveCommand(string $commandClass) |
||
83 | |||
84 | } |