Skip to content

Commit

Permalink
Keep old namespace for ManagerRegistry in container
Browse files Browse the repository at this point in the history
  • Loading branch information
eigan committed Jan 14, 2020
1 parent a72c227 commit dd24721
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DoctrineServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit dd24721

Please sign in to comment.