Files
sterivein/core/lib/Thelia/config.xml
2013-04-16 14:41:03 +02:00

100 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<config xmlns="http://thelia.net/schema/dic/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
<testLoops>
<testLoop name="equal" class="Test\TestLoop\Equal"/>
</testLoops>
<loops>
<loop name="foo" class="Foo\Bar"/>
<loop name="fooz" class="Foo\Barz"/>
</loops>
<services>
<service id="event_dispatcher" class="Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher">
<argument type="service" id="service_container" />
</service>
<service id="thelia.listener.view" class="Thelia\Core\EventListener\ViewListener">
<tag name="kernel.event_subscriber"/>
<argument type="service" id="service_container"/>
</service>
<service id="controller.default" class="Thelia\Controller\DefaultController"/>
<service id="matcher.default" class="Thelia\Routing\Matcher\DefaultMatcher">
<argument type="service" id="controller.default"/>
</service>
<!-- <service id="matcher.action" class="Thelia\Routing\Matcher\ActionMatcher">
<call method="setDispatcher">
<argument type="service" id="event_dispatcher"/>
</call>
</service>-->
<service id="matcher" class="Thelia\Routing\TheliaMatcherCollection">
<call method="add">
<argument type="service" id="matcher.default"/>
<argument>-255</argument>
</call>
<!-- <call method="add">
<argument type="service" id="matcher.action"/>
<argument>-200</argument>
</call>-->
</service>
<service id="listener.router" class="Symfony\Component\HttpKernel\EventListener\RouterListener">
<tag name="kernel.event_subscriber"/>
<argument type="service" id="matcher"/>
</service>
<service id="thelia.request_listener" class="Thelia\Core\EventListener\RequestListener">
<tag name="kernel.event_subscriber"/>
</service>
<service id="thelia.action.cart" class="Thelia\Action\Cart">
<tag name="kernel.event_subscriber"/>
</service>
<service id="thelia.action.customer" class="Thelia\Action\Customer">
<tag name="kernel.event_subscriber"/>
</service>
<service id="controller_resolver" class="Symfony\Component\HttpKernel\Controller\ControllerResolver"/>
<service id="parser" class="Thelia\Core\Template\Parser">
<argument type="service" id="service_container"/>
</service>
<service id="http_kernel" class="Thelia\Core\TheliaHttpKernel">
<argument type="service" id="event_dispatcher" />
<argument type="service" id="service_container" />
<argument type="service" id="controller_resolver" />
</service>
<service id="template" class="Thelia\Tpex\Tpex" scope="request">
<argument type="service" id="request" />
<argument type="service" id="event_dispatcher"/>
<call method="setLoop">
<argument>%tpex.loop%</argument>
</call>
<call method="setFilter">
<argument>%tpex.filter%</argument>
</call>
<call method="setBaseParams">
<argument>%tpex.baseParam%</argument>
</call>
<call method="setTestLoop">
<argument>%tpex.testLoop%</argument>
</call>
</service>
<service id="request" scope="request" synthetic="true" />
<service id="service_container" synthetic="true" />
<service id="kernel" synthetic="true" />
</services>
</config>