src/Graviton/ProxyBundle/DependencyInjection/Compiler/TransformerPass.php
private function registerTaggedTransformation(ContainerBuilder $container, Definition $definition, $tag, $callable)
    {
        $taggedServices = $container->findTaggedServiceIds($tag);

        foreach ($taggedServices as $id => $tags) {
            foreach ($tags as $attributes) {
                $definition->addMethodCall(
                    $callable,
                    array(
                        $attributes["alias"],
                        $attributes["endpoint"],
                        new Reference($id)
                    )
                );
            }
        }
    }
private function registerTaggedTransformation(ContainerBuilder $container, Definition $definition, $tag, $callable)
    {
        $taggedServices = $container->findTaggedServiceIds($tag);

        foreach ($taggedServices as $id => $tags) {
            foreach ($tags as $attributes) {
                $definition->addMethodCall(
                    $callable,
                    array(
                        $attributes["alias"],
                        $attributes["endpoint"],
                        new Reference($id)
                    )
                );
            }
        }
    }
private function registerTaggedTransformation ( ContainerBuilder $ container , Definition $ definition , $ tag , $ callable ) { $ taggedServices = $ container -> findTaggedServiceIds ( $ tag ) ; foreach ( $ taggedServices as $ id => $ tags ) { foreach ( $ tags as $ attributes ) { $ definition -> addMethodCall ( $ callable , array ( $ attributes [ "alias" ] , $ attributes [ "endpoint" ] , new Reference ( $ id ) ) ) ; } } }
Adds the found services to the TransformationHandler

@param ContainerBuilder $container  Symfony Service Container
@param Definition       $definition Service the services shall be add to.
@param string           $tag        Tag identifying the service to be added
@param string           $callable   Name of the method to call to add the tagged service.

@return void
Adds the found services to the TransformationHandler