/** * @see Behat\Behat\Context\Loader\ContextLoaderInterface::load() */ public function load(ContextInterface $context) { foreach ($context->getStepDefinitionResources() as $path) { $this->definitionLoader->load($path); } foreach ($context->getHookDefinitionResources() as $path) { $this->hookLoader->load($path); } }