change context by Class and service context

This commit is contained in:
Manuel Raynaud
2013-08-12 14:49:43 +02:00
parent b505d785ca
commit b4c4898374
4 changed files with 24 additions and 1 deletions

View File

@@ -152,6 +152,11 @@ class BaseAction
return $securityContext;
}
protected function getContext()
{
return $this->container->get("thelia.envContext");
}
protected function redirect($url, $status = 302)
{
$response = new RedirectResponse($url, $status);