Skip to content

Commit d8a41be

Browse files
Zales0123pamil
authored andcommitted
Upgrade guide from v1.2.x to v1.4.0
1 parent 7bcd690 commit d8a41be

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

UPGRADE-1.4.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,32 @@ If you're using Behat and want to be up-to-date with our configuration
5353
* Make your Behat services public by default with `<defaults public="true" />`
5454
* Change `contexts_services ` in your suite definitions to `contexts`
5555
* Take a look at [SymfonyExtension UPGRADE guide](https://github.com/FriendsOfBehat/SymfonyExtension/blob/master/UPGRADE-2.0.md) if you have any more problems
56+
57+
# UPGRADE FROM `v1.2.X` TO `v1.4.0`
58+
59+
Firstly, check out the [PluginSkeleton 1.3 upgrade guide](https://github.com/Sylius/PluginSkeleton/blob/1.4/UPGRADE-1.3.md) to update Sylius version step by step.
60+
To upgrade to Sylius 1.4 follow instructions from [the previous section](https://github.com/Sylius/PluginSkeleton/blob/1.4/UPGRADE-1.4.md#upgrade-from-v13x-to-v140) with following changes:
61+
62+
### Doctrine migrations
63+
64+
* Change namespaces of copied migrations to `Sylius\Migrations`
65+
66+
### Dotenv
67+
68+
* These changes are not required, but can be done as well, if you've changed application directory structure in `1.2.x` to `1.3` update
69+
70+
### Behat
71+
72+
* Add `\FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle()` to your bundles lists in `tests/Application/AppKernel.php` (preferably only in `test` environment)
73+
* Import Sylius Behat services in `tests/Application/config/config_test.yml` and your own Behat services as well:
74+
```yaml
75+
imports:
76+
- { resource: "../../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" }
77+
```
78+
* Specify test application's kernel path in `behat.yml`:
79+
```yaml
80+
FriendsOfBehat\SymfonyExtension:
81+
kernel:
82+
class: AppKernel
83+
path: tests/Application/app/AppKernel.php
84+
```

0 commit comments

Comments
 (0)