Compatibility with Symfony 3.0

This commit is contained in:
SpacePossum
2016-09-09 14:49:16 -04:00
committed by Jeremy Mikola
parent 392eb3b559
commit 0300cbb1a5
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"require": { "require": {
"php": ">=5.3.2", "php": ">=5.3.2",
"symfony/event-dispatcher": "~2.0" "symfony/event-dispatcher": "^2.3 || ^3.0"
}, },
"autoload": { "autoload": {
"psr-0": { "Jmikola": "src/" } "psr-0": { "Jmikola": "src/" }
@@ -195,4 +195,12 @@ class WildcardEventDispatcher implements EventDispatcherInterface
} }
} }
} }
/**
* @see EventDispatcherInterface::getListenerPriority()
*/
public function getListenerPriority($eventName, $listener)
{
return $this->dispatcher->getListenerPriority($eventName, $listener);
}
} }