private function loadOrmProvider($config, XmlFileLoader $loader, ContainerBuilder $container, $matchImplicitLocale)
{
$loader->load('provider-orm.xml');
$container->setParameter('cmf_routing.backend_type_orm', true);
$container->setParameter('cmf_routing.dynamic.persistence.orm.manager_name', $config['manager_name']);
$container->setParameter('cmf_routing.dynamic.persistence.orm.route_class', $config['route_class']);
if ($config['route_class'] === Route::class) {
$container->setParameter('cmf_routing.backend_type_orm_default', true);
} else {
$container->setParameter('cmf_routing.backend_type_orm_custom', true);
}
if (!$matchImplicitLocale) {
// remove the locales argument from the candidates
$container->getDefinition('cmf_routing.orm_candidates')->setArguments(array());
}
}