1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-28 23:40:41 +02:00

Flextype Box Plugin: Admin #125 #117

- fixes and refactoring
This commit is contained in:
Awilum
2019-06-08 01:07:28 +03:00
parent 7b95b73dfd
commit 5e58d77cd7

View File

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