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

[ticket/17176] Use Symfony name for event dispatcher

The previously used override of the names is no longer supported.

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-08-19 13:38:02 +02:00
parent 549c818a5c
commit 66b54d4469
32 changed files with 110 additions and 59 deletions

View File

@@ -205,11 +205,11 @@ class container_builder
// 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'));
// Convert old event dispatcher syntax
$this->container->addCompilerPass(new pass\convert_events());
// Event listeners "Symfony style"
$this->container->addCompilerPass(new RegisterListenersPass('dispatcher'));
// Event listeners
$this->container->addCompilerPass(new RegisterListenersPass());
if ($this->use_extensions)
{