allow to declare new router in modules
This commit is contained in:
@@ -55,7 +55,7 @@ class BaseController extends ContainerAware
|
||||
|
||||
/**
|
||||
* Create an action event
|
||||
*
|
||||
*
|
||||
* @param string $action
|
||||
* @return EventDispatcher
|
||||
*/
|
||||
|
||||
@@ -35,7 +35,7 @@ class CartController extends BaseFrontController
|
||||
|
||||
$this->dispatch(TheliaEvents::CART_ADDITEM, $cartEvent);
|
||||
|
||||
$this->redirectInternal();
|
||||
$this->redirectSuccess();
|
||||
}
|
||||
|
||||
public function modifyArticle()
|
||||
@@ -44,7 +44,7 @@ class CartController extends BaseFrontController
|
||||
|
||||
$this->dispatch(TheliaEvents::CART_CHANGEITEM, $cartEvent);
|
||||
|
||||
$this->redirectInternal();
|
||||
$this->redirectSuccess();
|
||||
}
|
||||
|
||||
public function deleteArticle()
|
||||
@@ -53,7 +53,7 @@ class CartController extends BaseFrontController
|
||||
|
||||
$this->dispatch(TheliaEvents::CART_DELETEITEM, $cartEvent);
|
||||
|
||||
$this->redirectInternal();
|
||||
$this->redirectSuccess();
|
||||
}
|
||||
|
||||
protected function getCartEvent()
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
namespace Thelia\Controller;
|
||||
namespace Thelia\Controller\Front;
|
||||
|
||||
use Thelia\Controller\NullControllerInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
@@ -32,7 +32,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
* @author Manuel Raynaud <mraynadu@openstudio.fr>
|
||||
*/
|
||||
|
||||
class DefaultController implements NullControllerInterface
|
||||
class DefaultController extends BaseFrontController
|
||||
{
|
||||
/**
|
||||
*
|
||||
Reference in New Issue
Block a user