private function buildConfig(ContainerBuilder
$container, string
$environment): void
{ if (!InstalledVersions::
isInstalled('symfony/web-profiler-bundle'
)) { return;
} $locator =
new FileLocator('Resources/config'
);
$resolver =
new LoaderResolver([ new YamlFileLoader($container,
$locator),
new GlobFileLoader($container,
$locator),
]);
$configLoader =
new DelegatingLoader($resolver);
$confDir =
$this->
getPath() . '/Resources/config';
$configLoader->
load($confDir . '/{packages}/*' . Kernel::CONFIG_EXTS, 'glob'
);
$configLoader->
load($confDir . '/{packages}/' .
$environment . '/*' . Kernel::CONFIG_EXTS, 'glob'
);
}}