diff --git a/framework/core/src/Support/Extension.php b/framework/core/src/Support/Extension.php index 2d065bf3f..4016cc09e 100644 --- a/framework/core/src/Support/Extension.php +++ b/framework/core/src/Support/Extension.php @@ -1,6 +1,7 @@ app->register($providerName); } } + + $events = $this->app->make('events'); + + foreach ($providers as $provider) { + $provider->listen($events); + } } } diff --git a/framework/core/stubs/extension/src/Extension.php b/framework/core/stubs/extension/src/Extension.php index 17c459e0f..83f95a156 100644 --- a/framework/core/stubs/extension/src/Extension.php +++ b/framework/core/stubs/extension/src/Extension.php @@ -5,23 +5,8 @@ use Illuminate\Events\Dispatcher; class Extension extends BaseExtension { - /** - * Bootstrap the application events. - * - * @return void - */ - public function boot(Dispatcher $events) + public function listen(Dispatcher $events) { $events->subscribe('{{namespace}}\Listeners\AddClientAssets'); } - - /** - * Register the service provider. - * - * @return void - */ - public function register() - { - // - } }