Enhance settings performance queries

This commit is contained in:
Joseph Cohen
2015-01-14 17:19:41 -06:00
parent 494bcd9adb
commit 4f250db260
10 changed files with 128 additions and 35 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace CachetHQ\Cachet\Providers;
use CachetHQ\Cachet\Models\Setting as SettingModel;
use CachetHQ\Cachet\Services\SettingsService;
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 ($app) {
return new SettingsService(new SettingModel());
});
}
}