Replaced webservice.* service name by besimple.soap.*
This commit is contained in:
@ -27,7 +27,7 @@ class BeSimpleSoapExtension extends Extension
|
||||
{
|
||||
private $contextArguments;
|
||||
|
||||
// maps config options to service suffix'
|
||||
// maps config options to service suffix
|
||||
private $bindingConfigToServiceSuffixMap = array('rpc-literal' => '.rpcliteral', 'document-wrapped' => '.documentwrapped');
|
||||
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
@ -55,13 +55,13 @@ class BeSimpleSoapExtension extends Extension
|
||||
|
||||
if (null === $this->contextArguments) {
|
||||
$this->contextArguments = $container
|
||||
->getDefinition('webservice.context')
|
||||
->getDefinition('besimple.soap.context')
|
||||
->getArguments()
|
||||
;
|
||||
}
|
||||
|
||||
$contextId = 'webservice.context.'.$config['name'];
|
||||
$context = $container->setDefinition($contextId, $definition = new DefinitionDecorator('webservice.context'));
|
||||
$contextId = 'besimple.soap.context.'.$config['name'];
|
||||
$context = $container->setDefinition($contextId, $definition = new DefinitionDecorator('besimple.soap.context'));
|
||||
|
||||
$arguments = array();
|
||||
foreach($this->contextArguments as $i => $argument) {
|
||||
|
@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
|
||||
/**
|
||||
* Adds tagged webservice.definition.loader services to ebservice.definition.resolver service
|
||||
* Adds tagged besimple.soap.definition.loader services to ebservice.definition.resolver service
|
||||
*
|
||||
* @author Francis Besset <francis.besset@gmail.com>
|
||||
*/
|
||||
@ -23,13 +23,13 @@ class WebServiceResolverPass implements CompilerPassInterface
|
||||
{
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
if (false === $container->hasDefinition('webservice.definition.loader.resolver')) {
|
||||
if (false === $container->hasDefinition('besimple.soap.definition.loader.resolver')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$definition = $container->getDefinition('webservice.definition.loader.resolver');
|
||||
$definition = $container->getDefinition('besimple.soap.definition.loader.resolver');
|
||||
|
||||
foreach ($container->findTaggedServiceIds('webservice.definition.loader') as $id => $attributes) {
|
||||
foreach ($container->findTaggedServiceIds('besimple.soap.definition.loader') as $id => $attributes) {
|
||||
$definition->addMethodCall('addLoader', array(new Reference($id)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user