1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[feature/event-dispatcher] Switch subscriber loader to EventDispatcherInterface

Do not hardcode the implementation of EventDispatcher.

PHPBB3-9550
This commit is contained in:
Igor Wiedler 2012-03-21 13:09:39 +01:00
parent 847d47a533
commit b4b586ae10

View File

@ -15,14 +15,14 @@ if (!defined('IN_PHPBB'))
exit;
}
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class phpbb_event_extension_subscriber_loader
{
private $dispatcher;
private $extension_manager;
public function __construct(EventDispatcher $dispatcher, phpbb_extension_manager $extension_manager)
public function __construct(EventDispatcherInterface $dispatcher, phpbb_extension_manager $extension_manager)
{
$this->dispatcher = $dispatcher;
$this->extension_manager = $extension_manager;