1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/16649] Correctly handle marking services as private

PHPBB3-16649
This commit is contained in:
rxu
2020-12-10 01:24:15 +07:00
parent 497d2965f9
commit 929acfb64c
2 changed files with 18 additions and 6 deletions

View File

@@ -201,6 +201,9 @@ class container_builder
// Easy collections through tags
$this->container->addCompilerPass(new pass\collection_pass());
// Mark all services public
$this->container->addCompilerPass(new pass\markpublic_pass());
// Event listeners "phpBB style"
$this->container->addCompilerPass(new RegisterListenersPass('dispatcher', 'event.listener_listener', 'event.listener'));
@@ -217,9 +220,6 @@ class container_builder
$this->inject_custom_parameters();
// Mark all services public
$this->container->addCompilerPass(new pass\markpublic_pass());
if ($this->compile_container)
{
$this->container->compile();