From b1da32bc97a6560e0a1afdac4512828722acb45f Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Sun, 4 Sep 2011 12:24:51 +0200 Subject: [PATCH] Renamed client cache_wsdl option to cache_type --- DependencyInjection/BeSimpleSoapExtension.php | 6 +++--- DependencyInjection/Configuration.php | 2 +- Resources/config/client.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DependencyInjection/BeSimpleSoapExtension.php b/DependencyInjection/BeSimpleSoapExtension.php index f44f2a5..e14d6df 100644 --- a/DependencyInjection/BeSimpleSoapExtension.php +++ b/DependencyInjection/BeSimpleSoapExtension.php @@ -84,14 +84,14 @@ class BeSimpleSoapExtension extends Extension $definition->replaceArgument(0, $options['wsdl']); - if (isset($options['cache_wsdl'])) { - $options['cache_wsdl'] = $this->getCacheType($options['cache_wsdl']); + if (isset($options['cache_type'])) { + $options['cache_type'] = $this->getCacheType($options['cache_type']); $defOptions = $container ->getDefinition('besimple.soap.client') ->getArgument(1); - $defOptions['cache_wsdl'] = $options['cache_wsdl']; + $defOptions['cache_type'] = $options['cache_type']; $definition->replaceArgument(1, $defOptions); } } diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index f856ee8..a15bc22 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -76,7 +76,7 @@ class Configuration ->scalarNode('wsdl') ->isRequired() ->end() - ->scalarNode('cache_wsdl') + ->scalarNode('cache_type') ->validate() ->ifNotInArray($this->cacheTypes) ->thenInvalid(sprintf('The cache type has to be either %s', implode(', ', $this->cacheTypes))) diff --git a/Resources/config/client.xml b/Resources/config/client.xml index 72acfef..d98220e 100644 --- a/Resources/config/client.xml +++ b/Resources/config/client.xml @@ -12,7 +12,7 @@ wsdl %kernel.debug% - null + null