1 | <?php |
||
17 | class Registry extends ManagerRegistry implements RegistryInterface |
||
18 | { |
||
19 | /** |
||
20 | * Construct. |
||
21 | * |
||
22 | * @param Connection[] $connections |
||
23 | * @param EntityManagerInterface[] $entityManagers |
||
24 | * @param string $defaultConnection |
||
25 | * @param string $defaultEntityManager |
||
26 | */ |
||
27 | public function __construct(ContainerInterface $container, array $connections, array $entityManagers, $defaultConnection, $defaultEntityManager) |
||
40 | |||
41 | /** |
||
42 | * Gets the default entity manager name. |
||
43 | * |
||
44 | * @deprecated |
||
45 | * |
||
46 | * @return string The default entity manager name |
||
47 | */ |
||
48 | public function getDefaultEntityManagerName() |
||
54 | |||
55 | /** |
||
56 | * Gets a named entity manager. |
||
57 | * |
||
58 | * @deprecated |
||
59 | * |
||
60 | * @param string $name The entity manager name (null for the default one) |
||
61 | * |
||
62 | * @return EntityManager |
||
63 | */ |
||
64 | public function getEntityManager($name = null) |
||
70 | |||
71 | /** |
||
72 | * Gets an array of all registered entity managers |
||
73 | * |
||
74 | * @deprecated |
||
75 | * |
||
76 | * @return EntityManager[] an array of all EntityManager instances |
||
77 | */ |
||
78 | public function getEntityManagers() |
||
84 | |||
85 | /** |
||
86 | * Resets a named entity manager. |
||
87 | * |
||
88 | * This method is useful when an entity manager has been closed |
||
89 | * because of a rollbacked transaction AND when you think that |
||
90 | * it makes sense to get a new one to replace the closed one. |
||
91 | * |
||
92 | * Be warned that you will get a brand new entity manager as |
||
93 | * the existing one is not usable anymore. This means that any |
||
94 | * other object with a dependency on this entity manager will |
||
95 | * hold an obsolete reference. You can inject the registry instead |
||
96 | * to avoid this problem. |
||
97 | * |
||
98 | * @deprecated |
||
99 | * |
||
100 | * @param string $name The entity manager name (null for the default one) |
||
101 | */ |
||
102 | public function resetEntityManager($name = null) |
||
108 | |||
109 | /** |
||
110 | * Resolves a registered namespace alias to the full namespace. |
||
111 | * |
||
112 | * This method looks for the alias in all registered entity managers. |
||
113 | * |
||
114 | * @deprecated |
||
115 | * |
||
116 | * @param string $alias The alias |
||
117 | * |
||
118 | * @return string The full namespace |
||
119 | */ |
||
120 | public function getEntityNamespace($alias) |
||
126 | |||
127 | /** |
||
128 | * Resolves a registered namespace alias to the full namespace. |
||
129 | * |
||
130 | * This method looks for the alias in all registered entity managers. |
||
131 | * |
||
132 | * @see Configuration::getEntityNamespace |
||
133 | * |
||
134 | * @param string $alias The alias |
||
135 | * |
||
136 | * @return string The full namespace |
||
137 | */ |
||
138 | public function getAliasNamespace($alias) |
||
149 | |||
150 | /** |
||
151 | * Gets all connection names. |
||
152 | * |
||
153 | * @deprecated |
||
154 | * |
||
155 | * @return string[] An array of connection names |
||
156 | */ |
||
157 | public function getEntityManagerNames() |
||
163 | |||
164 | /** |
||
165 | * Gets the entity manager associated with a given class. |
||
166 | * |
||
167 | * @deprecated |
||
168 | * |
||
169 | * @param string $class A Doctrine Entity class name |
||
170 | * |
||
171 | * @return EntityManager|null |
||
172 | */ |
||
173 | public function getEntityManagerForClass($class) |
||
179 | } |
||
180 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.