private function loadValidatorLoader(string $entityManagerName, ContainerBuilder $container) : void
    {
        if (! interface_exists(LoaderInterface::class) || ! class_exists(DoctrineLoader::class)) {
            return;
        }

        $validatorLoaderDefinition = $container->register(sprintf('doctrine.orm.%s_entity_manager.validator_loader', $entityManagerName), DoctrineLoader::class);
        $validatorLoaderDefinition->addArgument(new Reference(sprintf('doctrine.orm.%s_entity_manager', $entityManagerName)));

        $validatorLoaderDefinition->addTag('validator.auto_mapper', ['priority' => -100]);
    }
private function loadValidatorLoader(string $entityManagerName, ContainerBuilder $container) : void
    {
        if (! interface_exists(LoaderInterface::class) || ! class_exists(DoctrineLoader::class)) {
            return;
        }

        $validatorLoaderDefinition = $container->register(sprintf('doctrine.orm.%s_entity_manager.validator_loader', $entityManagerName), DoctrineLoader::class);
        $validatorLoaderDefinition->addArgument(new Reference(sprintf('doctrine.orm.%s_entity_manager', $entityManagerName)));

        $validatorLoaderDefinition->addTag('validator.auto_mapper', ['priority' => -100]);
    }
private function loadValidatorLoader ( string $ entityManagerName , ContainerBuilder $ container ) : void { if ( ! interface_exists ( LoaderInterface :: class ) || ! class_exists ( DoctrineLoader :: class ) ) { return ; } $ validatorLoaderDefinition = $ container -> register ( sprintf ( 'doctrine.orm.%s_entity_manager.validator_loader' , $ entityManagerName ) , DoctrineLoader :: class ) ; $ validatorLoaderDefinition -> addArgument ( new Reference ( sprintf ( 'doctrine.orm.%s_entity_manager' , $ entityManagerName ) ) ) ; $ validatorLoaderDefinition -> addTag ( 'validator.auto_mapper' , [ 'priority' => - 100 ] ) ; }
Loads a validator loader for each defined entity manager.
Loads a validator loader for each defined entity manager .