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));
}