From 5e58d77cd7831b78abec0d210e3d345b6c4a7255 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 8 Jun 2019 01:07:28 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - fixes and refactoring --- .../admin/app/Controllers/SnippetsController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site/plugins/admin/app/Controllers/SnippetsController.php b/site/plugins/admin/app/Controllers/SnippetsController.php index 74b4dd47..d219eee5 100644 --- a/site/plugins/admin/app/Controllers/SnippetsController.php +++ b/site/plugins/admin/app/Controllers/SnippetsController.php @@ -91,7 +91,7 @@ class SnippetsController extends Controller $this->flash->addMessage('error', __('admin_message_snippet_was_not_created')); } - return $response->withRedirect($this->container->get('router')->pathFor('admin.snippets.index')); + return $response->withRedirect($this->router->pathFor('admin.snippets.index')); } /** @@ -145,7 +145,7 @@ class SnippetsController extends Controller $this->flash->addMessage('error', __('admin_message_snippets_was_not_saved')); } - return $response->withRedirect($this->container->get('router')->pathFor('admin.snippets.index')); + return $response->withRedirect($this->router->pathFor('admin.snippets.index')); } /** @@ -195,7 +195,7 @@ class SnippetsController extends Controller $this->flash->addMessage('error', __('admin_message_snippets_was_not_renamed')); } - return $response->withRedirect($this->container->get('router')->pathFor('admin.snippets.index')); + return $response->withRedirect($this->router->pathFor('admin.snippets.index')); } /** @@ -214,7 +214,7 @@ class SnippetsController extends Controller $this->flash->addMessage('error', __('admin_message_snippets_was_not_deleted')); } - return $response->withRedirect($this->container->get('router')->pathFor('admin.snippets.index')); + return $response->withRedirect($this->router->pathFor('admin.snippets.index')); } /** @@ -233,6 +233,6 @@ class SnippetsController extends Controller $this->flash->addMessage('error', __('admin_message_snippets_was_not_duplicated')); } - return $response->withRedirect($this->container->get('router')->pathFor('admin.snippets.index')); + return $response->withRedirect($this->router->pathFor('admin.snippets.index')); } }