1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-29 07:50:29 +02:00

Flextype Box Plugin: Admin #125 #117

- fixes and refactoring
This commit is contained in:
Awilum
2019-06-07 23:48:11 +03:00
parent 95c805eae6
commit 8e61c8f52c

View File

@@ -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'));
}
}