Move settings to config namespace

This commit is contained in:
Joseph Cohen 2015-01-16 00:04:14 -06:00
parent 4f250db260
commit 0f2c9005b1
4 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<?php
return array(
return [
/*
|--------------------------------------------------------------------------
@ -26,7 +26,7 @@ return array(
|
*/
'proxies' => array(
'proxies' => [
'204.93.240.0',
'204.93.177.0',
'199.27.128.0',
@ -46,6 +46,6 @@ return array(
'2803:f800::',
'2405:b500::',
'2405:8100::',
)
],
);
];

View File

@ -21,7 +21,7 @@ class UsersTableSeeder extends Seeder
"password" => "test123",
"email" => "test@test.com",
"level" => 1,
]
],
];
User::truncate();

View File

@ -1,10 +1,10 @@
<?php
namespace CachetHQ\Cachet\Services;
namespace CachetHQ\Cachet\Config;
use Illuminate\Database\Eloquent\Model;
class SettingsService
class Repository
{
/**
* The eloquent model instance.

View File

@ -2,8 +2,8 @@
namespace CachetHQ\Cachet\Providers;
use CachetHQ\Cachet\Config\Repository;
use CachetHQ\Cachet\Models\Setting as SettingModel;
use CachetHQ\Cachet\Services\SettingsService;
use Illuminate\Support\ServiceProvider;
class SettingsServiceProvider extends ServiceProvider
@ -26,7 +26,7 @@ class SettingsServiceProvider extends ServiceProvider
public function register()
{
$this->app->bindShared('setting', function ($app) {
return new SettingsService(new SettingModel());
return new Repository(new SettingModel());
});
}
}