DependencyInjection/LexikTranslationExtension.php
protected function createDoctrineMappingDriver(ContainerBuilder $container, $driverId, $driverClass)
    {
        $driverDefinition = new Definition($driverClass, array(
            array(realpath(__DIR__.'/../Resources/config/model') => 'Lexik\Bundle\TranslationBundle\Model'),
        ));
        $driverDefinition->setPublic(false);

        $container->setDefinition($driverId, $driverDefinition);
    }
protected function createDoctrineMappingDriver(ContainerBuilder $container, $driverId, $driverClass)
    {
        $driverDefinition = new Definition($driverClass, array(
            array(realpath(__DIR__.'/../Resources/config/model') => 'Lexik\Bundle\TranslationBundle\Model'),
        ));
        $driverDefinition->setPublic(false);

        $container->setDefinition($driverId, $driverDefinition);
    }
protected function createDoctrineMappingDriver ( ContainerBuilder $ container , $ driverId , $ driverClass ) { $ driverDefinition = new Definition ( $ driverClass , array ( array ( realpath ( __DIR__ . '/../Resources/config/model' ) => 'Lexik\Bundle\TranslationBundle\Model' ) , ) ) ; $ driverDefinition -> setPublic ( false ) ; $ container -> setDefinition ( $ driverId , $ driverDefinition ) ; }
Add a driver to load mapping of model classes.

@param ContainerBuilder $container
@param string           $driverId
@param string           $driverClass
Add a driver to load mapping of model classes .