1 | <?php |
||
15 | |||
16 | class DeployTestBranchCommand extends Command |
||
17 | { |
||
18 | public const NAME = 'app:watch'; |
||
19 | |||
20 | /** @var LoggerInterface */ |
||
21 | private $logger; |
||
22 | |||
23 | /** @var Parameters */ |
||
24 | private $applicationParams; |
||
25 | |||
26 | /** @var EventDispatcherInterface */ |
||
27 | private $dispatcher; |
||
28 | |||
29 | /** |
||
30 | * @throws LogicException |
||
31 | */ |
||
32 | 1 | public function __construct( |
|
42 | |||
43 | 1 | protected function configure() : void |
|
49 | |||
50 | protected function execute(InputInterface $input, OutputInterface $output) : void |
||
51 | { |
||
52 | $this->logger->info('Initializing application...'); |
||
53 | $this->dispatcher->dispatch( |
||
54 | ApplicationInitializedEvent::NAME, |
||
55 | new ApplicationInitializedEvent() |
||
59 |