Skip to content

Commit ef45fe9

Browse files
Extend auth on boot, not resolve
1 parent b4ccfba commit ef45fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DoctrineServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class DoctrineServiceProvider extends ServiceProvider
4242
*/
4343
public function boot()
4444
{
45+
$this->extendAuthManager();
46+
4547
if (!$this->isLumen()) {
4648
$this->publishes([
4749
$this->getConfigPath() => config_path('doctrine.php'),
@@ -121,8 +123,6 @@ protected function registerManagerRegistry()
121123
// Once the registry get's resolved, we will call the resolve callbacks which were waiting for the registry
122124
$this->app->afterResolving('registry', function (ManagerRegistry $registry, Container $container) {
123125

124-
$this->extendAuthManager();
125-
126126
$this->bootExtensionManager();
127127

128128
BootChain::boot($registry);

0 commit comments

Comments
 (0)