Skip to content

Commit bb17e67

Browse files
Fire a booting event just before extension manager boots
1 parent acb5a47 commit bb17e67

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/DoctrineServiceProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ public function boot()
4343
{
4444
$this->extendAuthManager();
4545

46-
$this->app->booted(function () {
47-
$this->bootExtensionManager();
48-
});
46+
$this->bootExtensionManager();
4947

5048
if (!$this->isLumen()) {
5149
$this->publishes([
@@ -236,7 +234,11 @@ protected function extendAuthManager()
236234
*/
237235
protected function bootExtensionManager()
238236
{
237+
$this->app['events']->fire('doctrine.extensions.booting');
238+
239239
$this->app->make(ExtensionManager::class)->boot();
240+
241+
$this->app['events']->fire('doctrine.extensions.booted');
240242
}
241243

242244
/**

0 commit comments

Comments
 (0)