These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace DoctrineORMModule\Service; |
||
4 | |||
5 | use Interop\Container\ContainerInterface; |
||
6 | use Zend\ServiceManager\FactoryInterface; |
||
7 | use Zend\ServiceManager\ServiceLocatorInterface; |
||
8 | |||
9 | /** |
||
10 | * Factory that provides the `Doctrine\ORM\EntityManager` alias for `doctrine.entitymanager.orm_default` |
||
11 | * |
||
12 | * @license MIT |
||
13 | * @link http://www.doctrine-project.org/ |
||
14 | * @author Marco Pivetta <[email protected]> |
||
15 | */ |
||
16 | class EntityManagerAliasCompatFactory implements FactoryInterface |
||
0 ignored issues
–
show
|
|||
17 | { |
||
18 | /** |
||
19 | * {@inheritDoc} |
||
20 | * |
||
21 | * @return \Doctrine\ORM\EntityManager |
||
22 | * |
||
23 | * @deprecated this method was introduced to allow aliasing of service `Doctrine\ORM\EntityManager` |
||
24 | * from `doctrine.entitymanager.orm_default` |
||
25 | */ |
||
26 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
27 | { |
||
28 | return $container->get('doctrine.entitymanager.orm_default'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | * |
||
34 | * @return \Doctrine\ORM\EntityManager |
||
35 | * |
||
36 | * @deprecated this method was introduced to allow aliasing of service `Doctrine\ORM\EntityManager` |
||
37 | * from `doctrine.entitymanager.orm_default` |
||
38 | */ |
||
39 | public function createService(ServiceLocatorInterface $container) |
||
40 | { |
||
41 | return $this($container, \Doctrine\ORM\EntityManager::class); |
||
42 | } |
||
43 | } |
||
44 |
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.