start creating new Parser
create new listener for checking view parameter throw 404 status page if resource not found
This commit is contained in:
@@ -26,34 +26,34 @@ namespace Thelia\Action;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||
*/
|
||||
|
||||
abstract class BaseAction
|
||||
abstract class BaseAction
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
|
||||
*/
|
||||
protected $dispatcher;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher
|
||||
*/
|
||||
public function __construct(EventDispatcherInterface $dispatcher)
|
||||
public function __construct(EventDispatcherInterface $dispatcher)
|
||||
{
|
||||
$this->dispatcher = $dispatcher;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return \Symfony\Component\EventDispatcher\EventDispatcherInterface
|
||||
*/
|
||||
public function getDispatcher()
|
||||
{
|
||||
return $this->dispatcher;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,36 +29,35 @@ use Thelia\Action\BaseAction;
|
||||
class Cart extends BaseAction
|
||||
{
|
||||
/**
|
||||
*
|
||||
*
|
||||
* add an article to cart
|
||||
*
|
||||
*
|
||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||
*/
|
||||
public function addCart(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Delete specify article present into cart
|
||||
*
|
||||
*
|
||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||
*/
|
||||
public function deleteArticle(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Modify article's quantity
|
||||
*
|
||||
*
|
||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||
*/
|
||||
public function modifyArticle(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,19 +27,19 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class Customer
|
||||
{
|
||||
|
||||
|
||||
public function create(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function modify(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function modifyPassword(Request $request)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user