updated service configuration

This commit is contained in:
Christian Kerl 2011-03-26 16:23:44 +01:00
parent 0996cf80d9
commit d4c3e15f6f
2 changed files with 6 additions and 12 deletions

View File

@ -5,11 +5,11 @@
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd"> xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
<route id="_webservice_call" pattern="/{webservice}"> <route id="_webservice_call" pattern="/{webservice}">
<default key="_controller">webservice_controller:handle</default> <default key="_controller">webservice.controller:handle</default>
<requirement key="_method">POST</requirement> <requirement key="_method">POST</requirement>
</route> </route>
<route id="_webservice_definition" pattern="/{webservice}"> <route id="_webservice_definition" pattern="/{webservice}">
<default key="_controller">webservice_controller:definition</default> <default key="_controller">webservice.controller:definition</default>
<requirement key="_method">GET</requirement> <requirement key="_method">GET</requirement>
</route> </route>
</routes> </routes>

View File

@ -15,16 +15,10 @@
</parameters> </parameters>
<services> <services>
<!-- redefine FrameworkBundle 'http_kernel' service with different id --> <service id="webservice_controller" class="Bundle\WebServiceBundle\Controller\SoapWebServiceController">
<service id="symfony_http_kernel" class="%http_kernel.class%">
<argument type="service" id="event_dispatcher" />
<argument type="service" id="controller_resolver" />
</service>
<service id="webservice.kernel" class="Bundle\WebServiceBundle\SoapKernel">
<argument type="service" id="webservice.binder" /> <argument type="service" id="webservice.binder" />
<argument type="service" id="webservice.server.factory" /> <argument type="service" id="webservice.server.factory" />
<argument type="service" id="symfony_http_kernel" /> <argument type="service" id="http_kernel" />
</service> </service>
<service id="webservice.binder" class="Bundle\WebServiceBundle\ServiceBinding\ServiceBinder"> <service id="webservice.binder" class="Bundle\WebServiceBundle\ServiceBinding\ServiceBinder">