updated service configuration
This commit is contained in:
parent
0996cf80d9
commit
d4c3e15f6f
|
@ -5,11 +5,11 @@
|
|||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<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>
|
||||
</route>
|
||||
<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>
|
||||
</route>
|
||||
</routes>
|
||||
|
|
|
@ -14,17 +14,11 @@
|
|||
<parameter key="webservice.definition.dumper.class">Bundle\WebServiceBundle\ServiceDefinition\Dumper\WsdlFileDumper</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
<!-- redefine FrameworkBundle 'http_kernel' service with different id -->
|
||||
<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">
|
||||
<services>
|
||||
<service id="webservice_controller" class="Bundle\WebServiceBundle\Controller\SoapWebServiceController">
|
||||
<argument type="service" id="webservice.binder" />
|
||||
<argument type="service" id="webservice.server.factory" />
|
||||
<argument type="service" id="symfony_http_kernel" />
|
||||
<argument type="service" id="http_kernel" />
|
||||
</service>
|
||||
|
||||
<service id="webservice.binder" class="Bundle\WebServiceBundle\ServiceBinding\ServiceBinder">
|
||||
|
@ -61,4 +55,4 @@
|
|||
<argument type="string">%webservice.definition.wsdl%</argument>
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
||||
</container>
|
||||
|
|
Loading…
Reference in New Issue