From e67970f1d5e5030eb83a66338db5e7f9233d1d3a Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 3 Jan 2017 14:34:23 +0000 Subject: [PATCH] Use settings repository --- app/Http/Middleware/SetupAlreadyCompleted.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Middleware/SetupAlreadyCompleted.php b/app/Http/Middleware/SetupAlreadyCompleted.php index 605e932ebeb5..83de0ad206a3 100644 --- a/app/Http/Middleware/SetupAlreadyCompleted.php +++ b/app/Http/Middleware/SetupAlreadyCompleted.php @@ -11,8 +11,8 @@ namespace CachetHQ\Cachet\Http\Middleware; +use CachetHQ\Cachet\Settings\Repository; use Closure; -use Illuminate\Contracts\Config\Repository; use Illuminate\Http\Request; /** @@ -25,22 +25,22 @@ class SetupAlreadyCompleted { /** - * The config repository instance. + * The settings repository instance. * - * @var \Illuminate\Contracts\Config\Repository + * @var \CachetHQ\Cachet\Settings\Repository */ - protected $config; + protected $settings; /** * Creates a new setup already completed middleware instance. * - * @param \Illuminate\Contracts\Config\Repository $config + * @param \CachetHQ\Cachet\Settings\Repository $settings * * @return void */ - public function __construct(Repository $config) + public function __construct(Repository $settings) { - $this->config = $config; + $this->settings = $settings; } /** @@ -53,7 +53,7 @@ public function __construct(Repository $config) */ public function handle(Request $request, Closure $next) { - if ($this->config->get('setting.app_name')) { + if ($this->settings->get('app_name')) { return cachet_redirect('dashboard'); }