1 | <?php |
||
18 | abstract class DoctrineCommand extends Command |
||
19 | { |
||
20 | /** @var ManagerRegistry */ |
||
21 | private $doctrine; |
||
22 | |||
23 | public function __construct(ManagerRegistry $doctrine) |
||
29 | |||
30 | /** |
||
31 | * get a doctrine entity generator |
||
32 | * |
||
33 | * @return EntityGenerator |
||
34 | */ |
||
35 | protected function getEntityGenerator() |
||
47 | |||
48 | /** |
||
49 | * Get a doctrine entity manager by symfony name. |
||
50 | * |
||
51 | * @param string $name |
||
52 | * @param int|null $shardId |
||
53 | * |
||
54 | * @return EntityManager |
||
55 | */ |
||
56 | protected function getEntityManager($name, $shardId = null) |
||
70 | |||
71 | /** |
||
72 | * Get a doctrine dbal connection by symfony name. |
||
73 | * |
||
74 | * @param string $name |
||
75 | * |
||
76 | * @return Connection |
||
77 | */ |
||
78 | protected function getDoctrineConnection($name) |
||
82 | |||
83 | /** |
||
84 | * @return ManagerRegistry |
||
85 | */ |
||
86 | protected function getDoctrine() |
||
90 | } |
||
91 |
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.