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

buildPhpcrCompilerPass() private method

Creates and registers compiler passes for PHPCR-ODM mapping if both the phpcr-odm and the phpcr-bundle are present.
private buildPhpcrCompilerPass ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder
    private function buildPhpcrCompilerPass(ContainerBuilder $container)
    {
        if (!class_exists('Doctrine\\Bundle\\PHPCRBundle\\DependencyInjection\\Compiler\\DoctrinePhpcrMappingsPass') || !class_exists('Doctrine\\ODM\\PHPCR\\Version')) {
            return;
        }
        $container->addCompilerPass($this->buildBaseCompilerPass('Doctrine\\Bundle\\PHPCRBundle\\DependencyInjection\\Compiler\\DoctrinePhpcrMappingsPass', 'Doctrine\\ODM\\PHPCR\\Mapping\\Driver\\XmlDriver', 'phpcr'));
        $container->addCompilerPass(DoctrinePhpcrMappingsPass::createXmlMappingDriver(array(realpath(__DIR__ . '/Resources/config/doctrine-model') => 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Model', realpath(__DIR__ . '/Resources/config/doctrine-phpcr') => 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Doctrine\\Phpcr'), array('cmf_routing.dynamic.persistence.phpcr.manager_name'), 'cmf_routing.backend_type_phpcr', array('CmfRoutingBundle' => 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Doctrine\\Phpcr')));
    }