throw new \
RuntimeException('Container parameter "kernel.cache_dir" needs to be a string'
);
} $locator =
new FileLocator('Resources/config'
);
$resolver =
new LoaderResolver([ new XmlFileLoader($container,
$locator),
new YamlFileLoader($container,
$locator),
new IniFileLoader($container,
$locator),
new PhpFileLoader($container,
$locator),
new GlobFileLoader($container,
$locator),
new DirectoryLoader($container,
$locator),
new ClosureLoader($container),
]);
$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'
);
if ($environment === 'e2e'
) { $configLoader->
load($confDir . '/{packages}/prod/*' . Kernel::CONFIG_EXTS, 'glob'
);
}