Makes possible to inject services and parameters from other containers.
-
Install it:
$ composer require friends-of-behat/cross-container-extension --dev
-
Enable this extension and configure Behat to use it:
# behat.yml default: # ... extensions: FriendsOfBehat\CrossContainerExtension: ~
-
Use it together with FriendsOfBehat\ContextServiceExtension or FriendsOfBehat\ServiceContainerExtension.