aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/container_factory.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/di/container_factory.php')
-rw-r--r--phpBB/phpbb/di/container_factory.php25
1 files changed, 23 insertions, 2 deletions
diff --git a/phpBB/phpbb/di/container_factory.php b/phpBB/phpbb/di/container_factory.php
index dd348d8eee..548bbf153f 100644
--- a/phpBB/phpbb/di/container_factory.php
+++ b/phpBB/phpbb/di/container_factory.php
@@ -71,6 +71,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).
*
* If DEBUG_CONTAINER is set this option is ignored and a new container is build.
@@ -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,12 +190,22 @@ 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.
*
* @param bool $inject_config
pan class="hl kwb">Name[mk]=Mageia Ажурирање Name[ms]=Mageia Update Name[mt]=Aġġornament Mageia Name[nb]=Mageia oppdatering Name[nl]=Mageia Vernieuwen Name[nn]=Oppdater programvare Name[pa_IN]=ਮੈਂਡਰਿਵ ਲੀਨਕਸ ਨਵੀਨੀਕਰਨ Name[pl]=Aktualizacja Mageia Name[pt]=Actualização Mageia Name[pt_BR]=Mageia Update Name[ro]=Actualizări Mageia Name[ru]=Обновление Mageia Name[sc]=Mageia Update Name[sk]=Mageia Update Name[sl]=Mageia posodobitev Name[sq]=Azhurnimi Mageia Name[sr]=Маgeiа Надоградња Name[sr@Latn]=Mageia Nadogradnja Name[sv]=Uppdatera Mageia Name[ta]=மாண்ட்ேரக் புதுப்பித்தல் Name[tg]=Навигарии Mageia Name[th]=อัพเดทของ Mageia Name[tl]=Mageia Update Name[tr]=Mageia Güncelleme Name[uk]=Mageia Update Name[uz]=Mageia tizimini yangilash Name[uz@cyrillic]=Mageia тизимини янгилаш Name[vi]=Cập Nhật Mageia Name[wa]=Metaedjes a djoû di Mageia Name[zh_CN]=Mageia 更新 Name[zh_TW]=Mageia 更新 Icon=mageiaupdate Exec=mana update Terminal=false Type=Application Categories=X-MandrivaLinux-CrossDesktop;System;PackageManager; StartupNotify=false