diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-09-17 20:09:49 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-09-17 20:09:49 +0200 |
commit | 910cd5edbe1e7732dd3d19903f4131172f1a0a21 (patch) | |
tree | 0cc521b2a05a61b0585b26282abed6d1bd002aae /phpBB/phpbb/event | |
parent | 676f453cbde62e49c31888aebc02219958c131e4 (diff) | |
parent | c988b98ac65b726f02dd61de93c911064e0cfe66 (diff) | |
download | forums-910cd5edbe1e7732dd3d19903f4131172f1a0a21.tar forums-910cd5edbe1e7732dd3d19903f4131172f1a0a21.tar.gz forums-910cd5edbe1e7732dd3d19903f4131172f1a0a21.tar.bz2 forums-910cd5edbe1e7732dd3d19903f4131172f1a0a21.tar.xz forums-910cd5edbe1e7732dd3d19903f4131172f1a0a21.zip |
Merge pull request #2948 from Nicofuma/ticket/13061
[ticket/13061] Replace the service event.subscriber_loader by a compiler pass
* Nicofuma/ticket/13061:
[ticket/13061] Replace the service event.subscriber_loader by a compiler pass
Diffstat (limited to 'phpBB/phpbb/event')
-rw-r--r-- | phpBB/phpbb/event/extension_subscriber_loader.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/phpBB/phpbb/event/extension_subscriber_loader.php b/phpBB/phpbb/event/extension_subscriber_loader.php deleted file mode 100644 index fc01961e9f..0000000000 --- a/phpBB/phpbb/event/extension_subscriber_loader.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** -* -* This file is part of the phpBB Forum Software package. -* -* @copyright (c) phpBB Limited <https://www.phpbb.com> -* @license GNU General Public License, version 2 (GPL-2.0) -* -* For full copyright and license information, please see -* the docs/CREDITS.txt file. -* -*/ - -namespace phpbb\event; - -use Symfony\Component\EventDispatcher\EventDispatcherInterface; - -class extension_subscriber_loader -{ - private $dispatcher; - private $listener_collection; - - public function __construct(EventDispatcherInterface $dispatcher, \phpbb\di\service_collection $listener_collection) - { - $this->dispatcher = $dispatcher; - $this->listener_collection = $listener_collection; - } - - public function load() - { - if (!empty($this->listener_collection)) - { - foreach ($this->listener_collection as $listener) - { - $this->dispatcher->addSubscriber($listener); - } - } - } -} |