mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13061] Replace the service event.subscriber_loader by a compiler pass
PHPBB3-13061
This commit is contained in:
@@ -15,6 +15,7 @@ namespace phpbb\di;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
|
||||
use Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass;
|
||||
|
||||
class container_builder
|
||||
{
|
||||
@@ -160,11 +161,13 @@ class container_builder
|
||||
|
||||
if ($this->use_custom_pass)
|
||||
{
|
||||
// Symfony Kernel Listeners
|
||||
$this->container->addCompilerPass(new \phpbb\di\pass\collection_pass());
|
||||
$this->container->addCompilerPass(new RegisterListenersPass('dispatcher', 'event.listener_listener', 'event.listener'));
|
||||
|
||||
if ($this->use_kernel_pass)
|
||||
{
|
||||
$this->container->addCompilerPass(new \phpbb\di\pass\kernel_pass());
|
||||
$this->container->addCompilerPass(new RegisterListenersPass('dispatcher'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user