* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\DependencyInjection; use Symfony\Component\DependencyInjection\Argument\IteratorArgument; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * Gathers and configures the argument value resolvers. * * @author Iltar van der Berg */ class ControllerArgumentValueResolverPass implements CompilerPassInterface { use PriorityTaggedServiceTrait; private $argumentResolverService; private $argumentValueResolverTag; public function __construct($argumentResolverService = 'argument_resolver', $argumentValueResolverTag = 'controller.argument_value_resolver') { $this->argumentResolverService = $argumentResolverService; $this->argumentValueResolverTag = $argumentValueResolverTag; } public function process(ContainerBuilder $container) { if (!$container->hasDefinition($this->argumentResolverService)) { return; } $container ->getDefinition($this->argumentResolverService) ->replaceArgument(1, new IteratorArgument($this->findAndSortTaggedServices($this->argumentValueResolverTag, $container))) ; } } __halt_compiler();----SIGNATURE:----D9ztktxObKN9x2iJsmXjtUXtQoxM8nm9/srrXHBGga+1HlKPxmCSuPZ4U2bXtR2a+yhJyzPYGJc7wBvijSouEdBBzyHEa92LN5azekm9TiX8bJQcv4Hovgh4sD1nwtCBqZmplsANP6G+jhfh2pfGnig02x2EgD3fQqXTBQUlqah+q/AiGC7ICj7ui+hwbNlJ/JiSYUqNZdFftAwKet5OwcOyUzyEzAzUwd5diP0gsxa/tg/V9CC9yatm8HRZ3M0AFLn9D3XcrWSqTjHLzcShnzdkfJaTGfm7L6tmGc4YaOgEEBTH2gYVs8XophP5JME63MnnNN7hYgOjL/tC/6P3Iy0FKu5GBu0HJGfDrWRKUJGH2JEQ5jjAz039RglyWHASfHySiMnpGlT9mWic8Xmol5Ah1OwN+3Ey0jEJTb47z7ThC9R/DWRl6Mbw9Z/sA/z8PZI3ea4t14330gIwcQK1ADybSQ05e76U4eioCGCWy1+dWCkpoP+b89FBqDKM4oWhDeo7imi/k6slcDhr81U9D+NpFjjQuzonp0D179k4CqBgNyWILfwKvVlXA9GMfEMa0pFc7W1t6iBHOArt7zPsALNHvxBOvFyg02INewS72gdN4okVHZ3SjuuTYaxsCA6ANgCbTFMuPcedvCryB9XCGsXyTuiBKjiw+Tj9sotE6lM=----ATTACHMENT:----MzM2OTk1OTk1ODg5Mjg3NyAxMjQxNDM4NTIwNzIwMDY2IDc5ODg2ODE5MDg2NDQ3MDE=