Skip to content

Commit bdc94ce

Browse files
committed
use app function for octane
1 parent edefe15 commit bdc94ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Illuminate/Events/EventServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class EventServiceProvider extends ServiceProvider
1515
public function register()
1616
{
1717
$this->app->singleton('events', function ($app) {
18-
return (new Dispatcher($app))->setQueueResolver(function () use ($app) {
19-
return $app->make(QueueFactoryContract::class);
20-
})->setTransactionManagerResolver(function () use ($app) {
21-
return $app->bound('db.transactions')
22-
? $app->make('db.transactions')
18+
return (new Dispatcher($app))->setQueueResolver(function () {
19+
return app(QueueFactoryContract::class);
20+
})->setTransactionManagerResolver(function () {
21+
return app()->bound('db.transactions')
22+
? app('db.transactions')
2323
: null;
2424
});
2525
});

0 commit comments

Comments
 (0)