Page MenuHomeDevCentral

BrokerServiceProvider.php
No OneTemporary

BrokerServiceProvider.php

<?php
namespace Nasqueron\Notifications\Providers;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Keruald\Broker\BrokerFactory;
class BrokerServiceProvider extends ServiceProvider {
/**
* Bootstraps the application services.
*
* @return void
*/
public function boot() {
}
/**
* Registers the application services.
*
* @return void
*/
public function register() {
$this->app->singleton('broker', function (Application $app) {
$config = $app->make('config');
$driver = $config->get('broker.driver');
$params = $config->get('broker.connections.' . $driver);
return BrokerFactory::make($params);
});
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Feb 28, 22:47 (23 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436084
Default Alt Text
BrokerServiceProvider.php (781 B)

Event Timeline