File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -211,15 +211,15 @@ private function registerManagerRegistry()
211211 $ registryManagers
212212 );
213213 });
214- $ this ->app ->singleton (ManagerRegistry::class, IlluminateRegistry::class);
214+ $ this ->app ->alias (ManagerRegistry::class, IlluminateRegistry::class);
215215 }
216216
217217 private function registerEntityManager ()
218218 {
219219 $ this ->app ->singleton (EntityManager::class, function ($ app ) {
220220 return $ app ->make (IlluminateRegistry::class)->getManager ();
221221 });
222- $ this ->app ->singleton (EntityManagerInterface::class, EntityManager::class);
222+ $ this ->app ->alias (EntityManagerInterface::class, EntityManager::class);
223223 }
224224
225225 private function registerClassMetadataFactory ()
@@ -240,24 +240,6 @@ private function extendAuthManager()
240240 });
241241 }
242242
243- /**
244- * Get the services provided by the provider.
245- * @return array
246- */
247- public function provides ()
248- {
249- return [
250- CacheManager::class,
251- EntityManagerInterface::class,
252- EntityManager::class,
253- ClassMetadataFactory::class,
254- DriverMapper::class,
255- AuthManager::class,
256- ManagerRegistry::class,
257- IlluminateRegistry::class,
258- ];
259- }
260-
261243 /**
262244 * Map Laravel's to Doctrine's database configuration requirements.
263245 * @param $databaseConfig
You can’t perform that action at this time.
0 commit comments