From 0300cbb1a50a27529ea7e851d7922d235b4ce543 Mon Sep 17 00:00:00 2001 From: SpacePossum Date: Fri, 9 Sep 2016 14:49:16 -0400 Subject: [PATCH] Compatibility with Symfony 3.0 --- composer.json | 2 +- .../WildcardEventDispatcher/WildcardEventDispatcher.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b00075c..7a9ddf8 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "minimum-stability": "dev", "require": { "php": ">=5.3.2", - "symfony/event-dispatcher": "~2.0" + "symfony/event-dispatcher": "^2.3 || ^3.0" }, "autoload": { "psr-0": { "Jmikola": "src/" } diff --git a/src/Jmikola/WildcardEventDispatcher/WildcardEventDispatcher.php b/src/Jmikola/WildcardEventDispatcher/WildcardEventDispatcher.php index 795c449..b32ffb6 100644 --- a/src/Jmikola/WildcardEventDispatcher/WildcardEventDispatcher.php +++ b/src/Jmikola/WildcardEventDispatcher/WildcardEventDispatcher.php @@ -195,4 +195,12 @@ class WildcardEventDispatcher implements EventDispatcherInterface } } } + + /** + * @see EventDispatcherInterface::getListenerPriority() + */ + public function getListenerPriority($eventName, $listener) + { + return $this->dispatcher->getListenerPriority($eventName, $listener); + } }