1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

[ticket/12775] Update phpBB/install/database_update.php

PHPBB3-12775
This commit is contained in:
Tristan Darricau
2014-06-27 21:02:20 +02:00
parent f87e76b910
commit e7804ecce4
4 changed files with 347 additions and 323 deletions

View File

@@ -70,6 +70,13 @@ class container_factory
*/
protected $use_custom_pass = true;
/**
* Indicates if the kernel compile pass have to be used (default to true).
*
* @var bool
*/
protected $use_kernel_pass = true;
/**
* Indicates if a dump container should be used (default to true).
*
@@ -143,7 +150,11 @@ class container_factory
if ($this->use_custom_pass)
{
$this->container->addCompilerPass(new \phpbb\di\pass\collection_pass());
$this->container->addCompilerPass(new \phpbb\di\pass\kernel_pass());
if ($this->use_kernel_pass)
{
$this->container->addCompilerPass(new \phpbb\di\pass\kernel_pass());
}
}
$this->inject_custom_parameters();
@@ -179,11 +190,21 @@ class container_factory
*
* @param bool $use_custom_pass
*/
public function set_use_customPass($use_custom_pass)
public function set_use_custom_pass($use_custom_pass)
{
$this->use_custom_pass = $use_custom_pass;
}
/**
* Set if the kernel compile pass have to be used.
*
* @param bool $use_kernel_pass
*/
public function set_use_kernel_pass($use_kernel_pass)
{
$this->use_kernel_pass = $use_kernel_pass;
}
/**
* Set if the php config file should be injecting into the container.
*