mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Redefine controller
This commit is contained in:
parent
ed108ffec4
commit
d5f4f1e2fc
2 changed files with 3 additions and 23 deletions
|
|
@ -238,27 +238,4 @@ class CartController extends ResourceController
|
||||||
return 'sylius_cart';
|
return 'sylius_cart';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
protected function getBundlePrefix()
|
|
||||||
{
|
|
||||||
return 'sylius_cart';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
protected function getResourceName()
|
|
||||||
{
|
|
||||||
return 'cart';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
protected function getTemplateNamespace()
|
|
||||||
{
|
|
||||||
return 'SyliusCartBundle:Cart';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@
|
||||||
|
|
||||||
<services>
|
<services>
|
||||||
<service id="sylius_cart.controller.cart" class="%sylius_cart.controller.cart.class%">
|
<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">
|
<call method="setContainer">
|
||||||
<argument type="service" id="service_container" />
|
<argument type="service" id="service_container" />
|
||||||
</call>
|
</call>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue