Redefine controller

This commit is contained in:
Paweł Jędrzejewski 2012-11-07 13:17:59 +01:00
parent ed108ffec4
commit d5f4f1e2fc
2 changed files with 3 additions and 23 deletions

View file

@ -238,27 +238,4 @@ class CartController extends ResourceController
return 'sylius_cart';
}
/**
* {@inheritdoc}
*/
protected function getBundlePrefix()
{
return 'sylius_cart';
}
/**
* {@inheritdoc}
*/
protected function getResourceName()
{
return 'cart';
}
/**
* {@inheritdoc}
*/
protected function getTemplateNamespace()
{
return 'SyliusCartBundle:Cart';
}
}

View file

@ -23,6 +23,9 @@
<services>
<service id="sylius_cart.controller.cart" class="%sylius_cart.controller.cart.class%">
<argument>sylius_cart</argument>
<argument>cart</argument>
<argument>SyliusCartBundle:Cart</argument>
<call method="setContainer">
<argument type="service" id="service_container" />
</call>