refactor config process using only xml config file

This commit is contained in:
Manuel Raynaud
2013-04-03 12:47:49 +02:00
parent d4b87cca52
commit d8c4f3eeb8
8 changed files with 638 additions and 167 deletions

View File

@@ -1,8 +1,72 @@
<root>
<?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>
</root>
<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="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="request" scope="request" synthetic="true" />
<service id="service_container" synthetic="true" />
<service id="kernel" synthetic="true" />
</services>
</config>