Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #20 from walterdolce/feature/fix-scenario-state-ar…
Browse files Browse the repository at this point in the history
…gument-autoloading-issue

Autoload ScenarioStateArgument upon extension initialisation
  • Loading branch information
vincentchalamon committed Nov 15, 2016
2 parents ecc1696 + f41b0e5 commit e4623ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ServiceContainer/ScenarioStateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Behat\Testwork\ServiceContainer\Extension as ExtensionInterface;
use Behat\Testwork\ServiceContainer\ExtensionManager;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Gorghoa\ScenarioStateBehatExtension\Context\Initializer\ScenarioStateInitializer;
use Gorghoa\ScenarioStateBehatExtension\ScenarioStateArgumentOrganiser;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
Expand Down Expand Up @@ -47,6 +48,7 @@ public function getConfigKey()
*/
public function initialize(ExtensionManager $extensionManager)
{
AnnotationRegistry::registerFile(__DIR__.'/../Annotation/ScenarioStateArgument.php');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion testapp/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/Gorilla.php';
\Doctrine\Common\Annotations\AnnotationRegistry::registerFile(__DIR__.'/../src/Annotation/ScenarioStateArgument.php');

0 comments on commit e4623ff

Please sign in to comment.