aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_container.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-11-11 17:54:54 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-11-11 17:54:54 +0100
commit00417fc723073a9e8acefe4a8a7660bf25017201 (patch)
treed1409e6bfefdae90485200d7ad7ff10aa2ae9c8c /phpBB/includes/functions_container.php
parent5616972195b89324daa567b9a771aa49734af11c (diff)
downloadforums-00417fc723073a9e8acefe4a8a7660bf25017201.tar
forums-00417fc723073a9e8acefe4a8a7660bf25017201.tar.gz
forums-00417fc723073a9e8acefe4a8a7660bf25017201.tar.bz2
forums-00417fc723073a9e8acefe4a8a7660bf25017201.tar.xz
forums-00417fc723073a9e8acefe4a8a7660bf25017201.zip
[ticket/11152] Compile the install container
PHPBB3-11152
Diffstat (limited to 'phpBB/includes/functions_container.php')
-rw-r--r--phpBB/includes/functions_container.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/includes/functions_container.php b/phpBB/includes/functions_container.php
index e31fe381ac..1de1d9f7ea 100644
--- a/phpBB/includes/functions_container.php
+++ b/phpBB/includes/functions_container.php
@@ -53,16 +53,19 @@ function phpbb_create_container(array $extensions, $phpbb_root_path, $php_ext)
*/
function phpbb_create_install_container($phpbb_root_path, $php_ext)
{
- // We have to do it like this instead of with extensions
- $container = new ContainerBuilder();
- $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
- $loader->load('services.yml');
+ $core = new phpbb_di_extension_core($phpbb_root_path);
+ $container = phpbb_create_container(array($core), $phpbb_root_path, $php_ext);
$container->setParameter('core.root_path', $phpbb_root_path);
$container->setParameter('core.php_ext', $php_ext);
+ $container->setParameter('core.table_prefix', '');
+
+ $container->register('dbal.conn')->setSynthetic(true);
$container->setAlias('cache.driver', 'cache.driver.install');
+ $container->compile();
+
return $container;
}