Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Context / Snippet / Generator / ContextInterfaceBasedContextIdentifier.php
diff --git a/vendor/behat/behat/src/Behat/Behat/Context/Snippet/Generator/ContextInterfaceBasedContextIdentifier.php b/vendor/behat/behat/src/Behat/Behat/Context/Snippet/Generator/ContextInterfaceBasedContextIdentifier.php
deleted file mode 100644 (file)
index 7e1c154..0000000
+++ /dev/null
@@ -1,37 +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\Behat\Context\Snippet\Generator;
-
-use Behat\Behat\Context\Environment\ContextEnvironment;
-
-/**
- * Identifier that uses context interfaces to guess which one is target.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- *
- * @deprecated in favour of --snippets-for and will be removed in 4.0
- */
-final class ContextInterfaceBasedContextIdentifier implements TargetContextIdentifier
-{
-    /**
-     * {@inheritdoc}
-     */
-    public function guessTargetContextClass(ContextEnvironment $environment)
-    {
-        foreach ($environment->getContextClasses() as $class) {
-            if (in_array('Behat\Behat\Context\SnippetAcceptingContext', class_implements($class))) {
-                return $class;
-            }
-        }
-
-        return null;
-    }
-}