Closed fauxalgore closed 7 years ago
Hi @fauxalgore,
A context might not be necessary at all. Here is a Behat extension that uses an EventSubscriber and no Context class: https://github.com/adamquaile/behat-command-runner-extension/blob/master/src/AdamQuaile/Behat/CommandRunnerExtension/CommandRunnerSubscriber.php
Thanks @stevector. I will have a pull request soon that uses this convention.
Follow up: https://github.com/fauxalgore/BehatSayExtension/issues/7
Hi @fauxalgore,
A context might not be necessary at all. Here is a Behat extension that uses an EventSubscriber and no Context class: https://github.com/adamquaile/behat-command-runner-extension/blob/master/src/AdamQuaile/Behat/CommandRunnerExtension/CommandRunnerSubscriber.php