Файл: gapps/vendor/laravel/framework/src/Illuminate/Bus/BusServiceProvider.php
Строк: 49
<?php
namespace IlluminateBus;
use IlluminateSupportServiceProvider;
class BusServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('IlluminateBusDispatcher', function ($app) {
return new Dispatcher($app, function ($connection = null) use ($app) {
return $app['IlluminateContractsQueueFactory']->connection($connection);
});
});
$this->app->alias(
'IlluminateBusDispatcher', 'IlluminateContractsBusDispatcher'
);
$this->app->alias(
'IlluminateBusDispatcher', 'IlluminateContractsBusQueueingDispatcher'
);
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
'IlluminateBusDispatcher',
'IlluminateContractsBusDispatcher',
'IlluminateContractsBusQueueingDispatcher',
];
}
}