* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\DependencyInjection; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait; /** * Adds tagged routing.loader services to routing.resolver service. * * @author Fabien Potencier */ class RoutingResolverPass implements CompilerPassInterface { use PriorityTaggedServiceTrait; private $resolverServiceId; private $loaderTag; public function __construct($resolverServiceId = 'routing.resolver', $loaderTag = 'routing.loader') { $this->resolverServiceId = $resolverServiceId; $this->loaderTag = $loaderTag; } public function process(ContainerBuilder $container) { if (false === $container->hasDefinition($this->resolverServiceId)) { return; } $definition = $container->getDefinition($this->resolverServiceId); foreach ($this->findAndSortTaggedServices($this->loaderTag, $container) as $id) { $definition->addMethodCall('addLoader', array(new Reference($id))); } } } __halt_compiler();----SIGNATURE:----wt7ikuMGJf9yNz8N82AftUIrzbI9xOl/sRayCRZcLdu+k4gnaebMlkU15ydJdvemQ3Fdx0DlzSlefw51TFV02IUL0vFsjqG1XnU4nqpKV2w6vDMRsYAuQf6lbvJYhmfwIR1+B9QpvCKVHSAiA9i9/b67SKG7a4iuwNpOxyFKKIpT9/+7cu9RJ+w79Y28zowIEk5ksuvM1M3Dr74QPHP3fBErY8hXQS2dytL0MPqwI/ZWr5whiSyAMrvQ9rgrldyy/Sbi9lp82rGlgNOzBHE3gi+Q4cp00JUXxVYMs5qxurLPeiSuFoajYY6oDMKOiBEwuq+N2At6y53HZJixcply2gFI3GFdnFN6gt+v0WCF7bER361hByA5Y8rCz32EJEjuR/1AtSq6+yJ6XmF1XkB71ZwFiOpQIH+NcdY5XFwnPGHsSiOITBMke56pI/gC0X+N7m19D6EzkOusZhQIae+V/JGSLUZdrvt/qKHxZq7EcUcwXvK7Qa/SD/PDSFdwsA8bUeKRTFG3SjN/+Zkq4RdZyiq7qSmV9YnArOqWv9ZbYkUc45+w3pbHAvwXqy9nvG1TQz9g+1TpqaBbSEVF3SvnmKh9m47ZAHy2Cw40ErQV+u4Vo9ssElNSKlR2kizOLyltb1OJ23etZybPpSdVj7vRj4dTNskORU2nx/5pZk1+sDs=----ATTACHMENT:----OTM4ODc2OTU3MzI3NzcwNiA5MzM1NjEzMTM3MTYyNTk4IDQ0ODE5NzAyODM4MDcwMjk=