4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Context\Argument;
13 use Behat\Testwork\Environment\Environment;
16 * Adapts SuiteScopedResolverFactory to new ArgumentResolverFactory interface.
18 * @see ContextEnvironmentHandler
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 * @deprecated since 3.4. Use `ArgumentResolverFactory` instead
24 final class SuiteScopedResolverFactoryAdapter implements ArgumentResolverFactory
27 * @var SuiteScopedResolverFactory
32 * Initialises adapter.
34 * @param SuiteScopedResolverFactory $factory
36 public function __construct(SuiteScopedResolverFactory $factory)
38 $this->factory = $factory;
44 public function createArgumentResolvers(Environment $environment)
46 return $this->factory->generateArgumentResolvers($environment->getSuite());