Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Output / Node / EventListener / Flow / FireOnlyIfFormatterParameterListener.php
diff --git a/vendor/behat/behat/src/Behat/Testwork/Output/Node/EventListener/Flow/FireOnlyIfFormatterParameterListener.php b/vendor/behat/behat/src/Behat/Testwork/Output/Node/EventListener/Flow/FireOnlyIfFormatterParameterListener.php
deleted file mode 100644 (file)
index 0df21eb..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/*
- * This file is part of the Behat.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Behat\Testwork\Output\Node\EventListener\Flow;
-
-use Behat\Testwork\Output\Formatter;
-use Behat\Testwork\Output\Node\EventListener\EventListener;
-use Symfony\Component\EventDispatcher\Event;
-
-/**
- * Catches all events, but proxies them only if formatter has specific parameter set to a specific value.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class FireOnlyIfFormatterParameterListener implements EventListener
-{
-    /**
-     * @var string
-     */
-    private $name;
-    /**
-     * @var mixed
-     */
-    private $value;
-    /**
-     * @var EventListener
-     */
-    private $descendant;
-
-    /**
-     * Initializes listener.
-     *
-     * @param string        $name
-     * @param mixed         $value
-     * @param EventListener $descendant
-     */
-    public function __construct($name, $value, EventListener $descendant)
-    {
-        $this->name = $name;
-        $this->value = $value;
-        $this->descendant = $descendant;
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function listenEvent(Formatter $formatter, Event $event, $eventName)
-    {
-        if ($this->value !== $formatter->getParameter($this->name)) {
-            return;
-        }
-
-        $this->descendant->listenEvent($formatter, $event, $eventName);
-    }
-}