Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 9 | protected function initialize(InputInterface $input, OutputInterface $output): void |
|
29 | { |
||
30 | 9 | parent::initialize($input, $output); //initialize parent class method |
|
31 | |||
32 | 9 | $this->container = $this->getContainer(); |
|
33 | |||
34 | // This loads Doctrine, you can load your own services as well |
||
35 | /** @var ManagerRegistry $doctrine */ |
||
36 | 9 | $doctrine = $this->container->get('doctrine'); |
|
37 | 9 | $this->em = $doctrine->getManager(); |
|
38 | 9 | } |
|
39 | } |
||
40 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.