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.
*/
public function boot() : void {
}
/**
* Registers the application services.
*/
public function register() : void {
$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
Sat, Oct 11, 21:25 (1 d, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064093
Default Alt Text
BrokerServiceProvider.php (741 B)

Event Timeline