allow to declare new router in modules

This commit is contained in:
Manuel Raynaud
2013-08-13 12:09:10 +02:00
parent 5fce2186f9
commit d53f1289c3
9 changed files with 47 additions and 325 deletions

View File

@@ -55,7 +55,7 @@ class BaseController extends ContainerAware
/**
* Create an action event
*
*
* @param string $action
* @return EventDispatcher
*/

View File

@@ -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()

View File

@@ -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
{
/**
*