Skip to content

Commit dd24721

Browse files
committed
Keep old namespace for ManagerRegistry in container
1 parent a72c227 commit dd24721

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DoctrineServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ protected function registerManagerRegistry()
161161

162162
$this->app->alias('registry', ManagerRegistry::class);
163163
$this->app->alias('registry', IlluminateRegistry::class);
164+
165+
// This namespace has been deprecated in doctrine/persistence and we have
166+
// stopped referring to it. Alias is necessary to let other use it until
167+
// its removed.
168+
$this->app->alias('registry', \Doctrine\Common\Persistence\ManagerRegistry::class);
164169
}
165170

166171
/**

0 commit comments

Comments
 (0)