Symfony4 support

This commit is contained in:
Arnaud Langlade
2018-02-28 13:33:34 +01:00
parent db6193144e
commit b1059a520c
4 changed files with 82 additions and 3 deletions

View File

@@ -27,4 +27,29 @@ ensures that application behaviour will not be affected by stateful services.
FriendsOfBehat\SymfonyExtension: ~
```
**Symfony 3 configuration**
```
FriendsOfBehat\SymfonyExtension:
kernel:
bootstrap: 'var/bootstrap.php.cache'
path: app/AppKernel.php
class: 'AppKernel'
env: test
debug: true
```
**Symfony 4 configuration**
```
FriendsOfBehat\SymfonyExtension:
env_file: .env
kernel:
class: 'MyTrip\Kernel'
path: src/Kernel.php
debug: true
```
Symfony 4 does not have bootstrap file anymore and the environment is configured in the .env file.
3. Good luck & have fun!