X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FBehat%2FContext%2FSnippet%2FGenerator%2FContextInterfaceBasedContextIdentifier.php;fp=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FBehat%2FContext%2FSnippet%2FGenerator%2FContextInterfaceBasedContextIdentifier.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=7e1c154a822972b6d974aecba9f59a6402732ac0;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website 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 index 7e1c154a8..000000000 --- a/vendor/behat/behat/src/Behat/Behat/Context/Snippet/Generator/ContextInterfaceBasedContextIdentifier.php +++ /dev/null @@ -1,37 +0,0 @@ - - * - * 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 - * - * @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; - } -}