summaryrefslogtreecommitdiff
path: root/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2017-12-15 11:24:35 -0800
committerFrédéric Guillot <fred@kanboard.net>2017-12-15 11:55:42 -0800
commita93b8e10f5954be0853eec693c13e84c4bd9e6f2 (patch)
treeeda5de9494b819235616e8623bb3393e9cc373af /vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
parent2c72a283f2d51034f85f4e2ca8b194d304a3c433 (diff)
Kanboard requires at least PHP 5.6 now
Diffstat (limited to 'vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php')
-rw-r--r--vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php b/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
index 7ef9ece7..b3cf56c5 100644
--- a/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
+++ b/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php
@@ -18,18 +18,8 @@ namespace Symfony\Component\EventDispatcher;
*/
class ImmutableEventDispatcher implements EventDispatcherInterface
{
- /**
- * The proxied dispatcher.
- *
- * @var EventDispatcherInterface
- */
private $dispatcher;
- /**
- * Creates an unmodifiable proxy for an event dispatcher.
- *
- * @param EventDispatcherInterface $dispatcher The proxied event dispatcher.
- */
public function __construct(EventDispatcherInterface $dispatcher)
{
$this->dispatcher = $dispatcher;
@@ -86,6 +76,14 @@ class ImmutableEventDispatcher implements EventDispatcherInterface
/**
* {@inheritdoc}
*/
+ public function getListenerPriority($eventName, $listener)
+ {
+ return $this->dispatcher->getListenerPriority($eventName, $listener);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
public function hasListeners($eventName = null)
{
return $this->dispatcher->hasListeners($eventName);