private function registerContainerFile(ContainerBuilder
$container): void
{ $fileLocator =
new FileLocator($this->
getPath());
$loaderResolver =
new LoaderResolver([ new XmlFileLoader($container,
$fileLocator),
new YamlFileLoader($container,
$fileLocator),
new PhpFileLoader($container,
$fileLocator),
]);
$delegatingLoader =
new DelegatingLoader($loaderResolver);
foreach ($this->
getServicesFilePathArray($this->
getPath() . '/Resources/config/services.*'
) as $path) { $delegatingLoader->
load($path);
} if ($container->
getParameter('kernel.environment'
) === 'test'
) { foreach ($this->
getServicesFilePathArray($this->
getPath() . '/Resources/config/services_test.*'
) as $testPath) { $delegatingLoader->
load($testPath);
} } } /**
* @return list<string>
*/