diff --git a/src/DoctrineServiceProvider.php b/src/DoctrineServiceProvider.php index d00966d8..e019d75b 100644 --- a/src/DoctrineServiceProvider.php +++ b/src/DoctrineServiceProvider.php @@ -161,6 +161,11 @@ protected function registerManagerRegistry() $this->app->alias('registry', ManagerRegistry::class); $this->app->alias('registry', IlluminateRegistry::class); + + // This namespace has been deprecated in doctrine/persistence and we have + // stopped referring to it. Alias is necessary to let other use it until + // its removed. + $this->app->alias('registry', \Doctrine\Common\Persistence\ManagerRegistry::class); } /**