Replaced webservice.* service name by besimple.soap.*

This commit is contained in:
Francis Besset
2011-07-18 22:59:20 +02:00
parent 055bb8a96c
commit c13a96131b
6 changed files with 48 additions and 48 deletions

View File

@ -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) {

View File

@ -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)));
}
}