mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
33 lines
610 B
PHP
33 lines
610 B
PHP
<?php
|
|
|
|
namespace CachetHQ\Cachet\Providers;
|
|
|
|
use CachetHQ\Cachet\Config\Repository;
|
|
use CachetHQ\Cachet\Models\Setting as SettingModel;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class SettingsServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Boot the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->bindShared('setting', function () {
|
|
return new Repository(new SettingModel());
|
|
});
|
|
}
|
|
}
|