1 | <?php |
||
8 | abstract class ContainerAwareCommand extends AbstractCommand |
||
9 | { |
||
10 | private $container; |
||
11 | |||
12 | /** |
||
13 | * Constructor. |
||
14 | * |
||
15 | * @param string $name Command name. |
||
16 | * @param ContainerInterface $container Container instance. |
||
17 | */ |
||
18 | public function __construct($name, ContainerInterface $container) |
||
19 | { |
||
20 | parent::__construct($name); |
||
21 | $this->container = $container; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Gets container instance. |
||
26 | * |
||
27 | * @return ContainerInterface |
||
28 | */ |
||
29 | protected function getContainer() |
||
33 | } |
||
34 |