Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 9 | protected function initialize(InputInterface $input, OutputInterface $output) |
|
24 | { |
||
25 | 9 | parent::initialize($input, $output); //initialize parent class method |
|
26 | |||
27 | 9 | $this->container = $this->getContainer(); |
|
28 | |||
29 | // This loads Doctrine, you can load your own services as well |
||
30 | 9 | $this->em = $this->container->get('doctrine') |
|
31 | 9 | ->getManager(); |
|
32 | 9 | } |
|
33 | } |
||
34 |