From 8e61c8f52c7d3e0c182afd63aeccc714cffb1308 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 7 Jun 2019 23:48:11 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - fixes and refactoring --- site/plugins/admin/app/Controllers/SettingsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/plugins/admin/app/Controllers/SettingsController.php b/site/plugins/admin/app/Controllers/SettingsController.php index 4bbf8827..aa702316 100644 --- a/site/plugins/admin/app/Controllers/SettingsController.php +++ b/site/plugins/admin/app/Controllers/SettingsController.php @@ -116,7 +116,7 @@ class SettingsController extends Controller $this->flash->addMessage('error', __('admin_message_settings_was_not_saved')); } - return $response->withRedirect($this->container->get('router')->pathFor('admin.settings.index')); + return $response->withRedirect($this->router->pathFor('admin.settings.index')); } /** @@ -127,10 +127,10 @@ class SettingsController extends Controller * * @return Response */ - public function clearCacheProcess(Request $request, Response $response) : Response + public function clearCacheProcess(/** @scrutinizer ignore-unused */ Request $request, Response $response) : Response { $this->cache->clear(); $this->flash->addMessage('success', __('admin_message_cache_files_deleted')); - return $response->withRedirect($this->container->get('router')->pathFor('admin.settings.index')); + return $response->withRedirect($this->router->pathFor('admin.settings.index')); } }