created DIC configuration for TypeConverter implementations and ConverterRepository
This commit is contained in:
parent
f62a8bdd67
commit
6290ea268a
|
@ -36,6 +36,7 @@ class BeSimpleSoapExtension extends Extension
|
||||||
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
|
|
||||||
$loader->load('loaders.xml');
|
$loader->load('loaders.xml');
|
||||||
|
$loader->load('converters.xml');
|
||||||
$loader->load('webservice.xml');
|
$loader->load('webservice.xml');
|
||||||
|
|
||||||
$processor = new Processor();
|
$processor = new Processor();
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" ?>
|
||||||
|
|
||||||
|
<container xmlns="http://symfony.com/schema/dic/services"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||||
|
|
||||||
|
<parameters>
|
||||||
|
<parameter key="besimple.soap.converter.repository.class">BeSimple\SoapBundle\Converter\ConverterRepository</parameter>
|
||||||
|
<parameter key="besimple.soap.converter.date_time.class">BeSimple\SoapBundle\Converter\DateTimeTypeConverter</parameter>
|
||||||
|
</parameters>
|
||||||
|
|
||||||
|
<services>
|
||||||
|
<service id="besimple.soap.converter.repository" class="%besimple.soap.converter.repository.class%" />
|
||||||
|
|
||||||
|
<service id="besimple.soap.converter.date_time" class="%besimple.soap.converter.date_time.class%" public="false">
|
||||||
|
<tag name="besimple.soap.converter" />
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
</container>
|
|
@ -13,7 +13,6 @@
|
||||||
<parameter key="besimple.soap.binder.request_header.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedRequestHeaderMessageBinder</parameter>
|
<parameter key="besimple.soap.binder.request_header.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedRequestHeaderMessageBinder</parameter>
|
||||||
<parameter key="besimple.soap.binder.response.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder</parameter>
|
<parameter key="besimple.soap.binder.response.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder</parameter>
|
||||||
<parameter key="besimple.soap.definition.dumper.wsdl.rpcliteral.class">BeSimple\SoapBundle\ServiceDefinition\Dumper\WsdlDumper</parameter>
|
<parameter key="besimple.soap.definition.dumper.wsdl.rpcliteral.class">BeSimple\SoapBundle\ServiceDefinition\Dumper\WsdlDumper</parameter>
|
||||||
<parameter key="besimple.soap.converter.repository.class">BeSimple\SoapBundle\Converter\ConverterRepository</parameter>
|
|
||||||
<parameter key="besimple.soap.type.repository.class">BeSimple\SoapBundle\Converter\TypeRepository</parameter>
|
<parameter key="besimple.soap.type.repository.class">BeSimple\SoapBundle\Converter\TypeRepository</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
||||||
|
@ -53,8 +52,6 @@
|
||||||
</argument>
|
</argument>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="besimple.soap.converter.repository" class="%besimple.soap.converter.repository.class%" />
|
|
||||||
|
|
||||||
<service id="besimple.soap.type.repository" class="%besimple.soap.type.repository.class%">
|
<service id="besimple.soap.type.repository" class="%besimple.soap.type.repository.class%">
|
||||||
<call method="addXmlNamespace">
|
<call method="addXmlNamespace">
|
||||||
<argument>xsd</argument>
|
<argument>xsd</argument>
|
||||||
|
|
Loading…
Reference in New Issue