1 | <?php declare(strict_types=1); |
||
16 | abstract class AbstractCommand extends Command |
||
17 | { |
||
18 | /** @var SymfonyStyle */ |
||
19 | protected $io; |
||
20 | |||
21 | /** @var Connection */ |
||
22 | protected $connection; |
||
23 | |||
24 | /** @var ContainerInterface */ |
||
25 | 8 | private $container; |
|
26 | |||
27 | 8 | /** |
|
28 | * AbstractCommand constructor. |
||
29 | 8 | * @param ContainerInterface $container |
|
30 | 8 | */ |
|
31 | public function __construct(ContainerInterface $container, string $name = null) |
||
36 | |||
37 | 8 | protected function getContainer(): ContainerInterface |
|
41 | |||
42 | 8 | /** |
|
43 | 2 | * {@inheritdoc} |
|
44 | */ |
||
45 | protected function configure() |
||
51 | 7 | ||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
72 | } |
||
73 |