mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/dic] Adjust installer script to work with partially configured container
PHPBB3-10739
This commit is contained in:
parent
a9c10a480c
commit
ed34451d5b
1 changed files with 3 additions and 9 deletions
|
@ -90,20 +90,14 @@ $phpbb_container = new ContainerBuilder();
|
||||||
$loader = new YamlFileLoader($phpbb_container, new FileLocator(__DIR__.'/../config'));
|
$loader = new YamlFileLoader($phpbb_container, new FileLocator(__DIR__.'/../config'));
|
||||||
$loader->load('services.yml');
|
$loader->load('services.yml');
|
||||||
|
|
||||||
$processor = new phpbb_di_processor_config($phpbb_root_path . 'config.' . $phpEx, $phpbb_root_path, $phpEx);
|
$phpbb_container->setParameter('core.root_path', $phpbb_root_path);
|
||||||
$processor->process($phpbb_container);
|
$phpbb_container->setParameter('core.php_ext', $phpEx);
|
||||||
|
|
||||||
$phpbb_container->setAlias('cache.driver.install', 'cache.driver');
|
$phpbb_container->setAlias('cache.driver', 'cache.driver.install');
|
||||||
|
|
||||||
$phpbb_class_loader = $phpbb_container->get('class_loader');
|
$phpbb_class_loader = $phpbb_container->get('class_loader');
|
||||||
$phpbb_class_loader_ext = $phpbb_container->get('class_loader.ext');
|
$phpbb_class_loader_ext = $phpbb_container->get('class_loader.ext');
|
||||||
|
|
||||||
$ids = array_keys($phpbb_container->findTaggedServiceIds('container.processor'));
|
|
||||||
foreach ($ids as $id) {
|
|
||||||
$processor = $phpbb_container->get($id);
|
|
||||||
$processor->process($phpbb_container);
|
|
||||||
}
|
|
||||||
|
|
||||||
// set up caching
|
// set up caching
|
||||||
$cache = $phpbb_container->get('cache');
|
$cache = $phpbb_container->get('cache');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue