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()
211
211
$ registryManagers
212
212
);
213
213
});
214
- $ this ->app ->singleton (ManagerRegistry::class, IlluminateRegistry::class);
214
+ $ this ->app ->alias (ManagerRegistry::class, IlluminateRegistry::class);
215
215
}
216
216
217
217
private function registerEntityManager ()
218
218
{
219
219
$ this ->app ->singleton (EntityManager::class, function ($ app ) {
220
220
return $ app ->make (IlluminateRegistry::class)->getManager ();
221
221
});
222
- $ this ->app ->singleton (EntityManagerInterface::class, EntityManager::class);
222
+ $ this ->app ->alias (EntityManagerInterface::class, EntityManager::class);
223
223
}
224
224
225
225
private function registerClassMetadataFactory ()
@@ -240,24 +240,6 @@ private function extendAuthManager()
240
240
});
241
241
}
242
242
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
-
261
243
/**
262
244
* Map Laravel's to Doctrine's database configuration requirements.
263
245
* @param $databaseConfig
You can’t perform that action at this time.
0 commit comments