We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132bc6a commit 9b32992Copy full SHA for 9b32992
src/DoctrineServiceProvider.php
@@ -259,11 +259,13 @@ protected function bootExtensionManager()
259
*/
260
public function extendNotificationChannel()
261
{
262
- $channel = $this->app['config']->get('doctrine.notifications.channel', 'database');
+ if ($this->app->bound(ChannelManager::class)) {
263
+ $channel = $this->app['config']->get('doctrine.notifications.channel', 'database');
264
- $this->app->make(ChannelManager::class)->extend($channel, function ($app) {
265
- return new DoctrineChannel($app['registry']);
266
- });
+ $this->app->make(ChannelManager::class)->extend($channel, function ($app) {
+ return new DoctrineChannel($app['registry']);
267
+ });
268
+ }
269
}
270
271
/**
0 commit comments