private function registerLocator(
        ContainerBuilder $container,
        EntityMapping $entityMapping
    ) {
        /**
         * Locator.
         */
        $locatorId = 'simple_doctrine_mapping.locator.' . $entityMapping->getUniqueIdentifier();
        $locator = new Definition('Mmoreram\SimpleDoctrineMapping\Locator\SimpleDoctrineMappingLocator');
        $locator->setPublic(false);
        $locator->setArguments([
            $entityMapping->getEntityNamespace(),
            [$entityMapping->getEntityMappingFilePath()],
        ]);
        $locator->setConfigurator([
            new Reference('simple_doctrine_mapping.locator_configurator'),
            'configure',
        ]);
        $container->setDefinition($locatorId, $locator);
    }
private function registerLocator(
        ContainerBuilder $container,
        EntityMapping $entityMapping
    ) {
        /**
         * Locator.
         */
        $locatorId = 'simple_doctrine_mapping.locator.' . $entityMapping->getUniqueIdentifier();
        $locator = new Definition('Mmoreram\SimpleDoctrineMapping\Locator\SimpleDoctrineMappingLocator');
        $locator->setPublic(false);
        $locator->setArguments([
            $entityMapping->getEntityNamespace(),
            [$entityMapping->getEntityMappingFilePath()],
        ]);
        $locator->setConfigurator([
            new Reference('simple_doctrine_mapping.locator_configurator'),
            'configure',
        ]);
        $container->setDefinition($locatorId, $locator);
    }
private function registerLocator ( ContainerBuilder $ container , EntityMapping $ entityMapping ) { /**
         * Locator.
         */ $ locatorId = 'simple_doctrine_mapping.locator.' . $ entityMapping -> getUniqueIdentifier ( ) ; $ locator = new Definition ( 'Mmoreram\SimpleDoctrineMapping\Locator\SimpleDoctrineMappingLocator' ) ; $ locator -> setPublic ( false ) ; $ locator -> setArguments ( [ $ entityMapping -> getEntityNamespace ( ) , [ $ entityMapping -> getEntityMappingFilePath ( ) ] , ] ) ; $ locator -> setConfigurator ( [ new Reference ( 'simple_doctrine_mapping.locator_configurator' ) , 'configure' , ] ) ; $ container -> setDefinition ( $ locatorId , $ locator ) ; }
Register the locator.

@param ContainerBuilder $container
@param EntityMapping    $entityMapping
Register the locator .