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

findDoctrineOrmCompiler() private method

Looks for a mapping compiler pass. If available, use the one from DoctrineBundle (available only since DoctrineBundle 2.4 and Symfony 2.3) Otherwise use the standalone one from CmfCoreBundle.
private findDoctrineOrmCompiler ( ) : boolean | string
return boolean | string the compiler pass to use or false if no suitable one was found
    private function findDoctrineOrmCompiler()
    {
        if (class_exists('Symfony\\Bridge\\Doctrine\\DependencyInjection\\CompilerPass\\RegisterMappingsPass') && class_exists('Doctrine\\Bundle\\DoctrineBundle\\DependencyInjection\\Compiler\\DoctrineOrmMappingsPass')) {
            return 'Doctrine\\Bundle\\DoctrineBundle\\DependencyInjection\\Compiler\\DoctrineOrmMappingsPass';
        }
        if (class_exists('Symfony\\Cmf\\Bundle\\CoreBundle\\DependencyInjection\\Compiler\\DoctrineOrmMappingsPass')) {
            return 'Symfony\\Cmf\\Bundle\\CoreBundle\\DependencyInjection\\Compiler\\DoctrineOrmMappingsPass';
        }
        return false;
    }