FriendsOfBehat / SymfonyExtension

:musical_score: Extension integrating Behat with Symfony.
MIT License
472 stars 62 forks source link

Autoload contexts in Symfony #143

Closed alejgarciarodriguez closed 2 years ago

alejgarciarodriguez commented 3 years ago

Is it possible to make Symfony load contexts dynamically? E.g. using autowiring. Thanks!

dkarlovi commented 3 years ago

Yes, this is exactly what happens with the default setup. You just need to list contexts in behat.yaml, everything else happens via the Symfony container, configured via config/services_test.yaml.