mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-29 19:18:11 +01:00
Move settings to config namespace
This commit is contained in:
parent
4f250db260
commit
0f2c9005b1
@ -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::',
|
||||
)
|
||||
],
|
||||
|
||||
);
|
||||
];
|
||||
|
@ -21,7 +21,7 @@ class UsersTableSeeder extends Seeder
|
||||
"password" => "test123",
|
||||
"email" => "test@test.com",
|
||||
"level" => 1,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
User::truncate();
|
||||
|
@ -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.
|
@ -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());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user