Page MenuHomeDevCentral

ServicesServiceProvider.php
No OneTemporary

ServicesServiceProvider.php

<?php
namespace Nasqueron\Notifications\Providers;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Nasqueron\Notifications\Config\Services\Services;
class ServicesServiceProvider extends ServiceProvider {
/**
* Registers the application services.
*
* @return void
*/
public function register() {
$this->app->singleton('services', function (Application $app) {
$path = config('services.gate.credentials');
if (strlen($path) > 0 && $app->make('filesystem')->has($path)) {
return Services::loadFromJson($path);
}
return new Services;
});
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jul 29, 13:56 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2758691
Default Alt Text
ServicesServiceProvider.php (701 B)

Event Timeline