Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle::buildBaseCompilerPass PHP Method

buildBaseCompilerPass() private method

Builds the compiler pass for the symfony core routing component. The compiler pass factory method uses the SymfonyFileLocator which does magic with the namespace and thus does not work here.
private buildBaseCompilerPass ( string $compilerClass, string $driverClass, string $type ) : Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
$compilerClass string the compiler class to instantiate
$driverClass string the xml driver class for this backend
$type string the backend type name
return Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
    private function buildBaseCompilerPass($compilerClass, $driverClass, $type)
    {
        $arguments = array(array(realpath(__DIR__ . '/Resources/config/doctrine-base')), sprintf('.%s.xml', $type));
        $locator = new Definition('Doctrine\\Common\\Persistence\\Mapping\\Driver\\DefaultFileLocator', $arguments);
        $driver = new Definition($driverClass, array($locator));
        return new $compilerClass($driver, array('Symfony\\Component\\Routing'), array(sprintf('cmf_routing.dynamic.persistence.%s.manager_name', $type)), sprintf('cmf_routing.backend_type_%s', $type));
    }