Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPGRADE] Add more details about PHP, mocker container and api platform folder #13633

Merged
merged 2 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions UPGRADE-1.11.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# UPGRADE FROM `v1.10.X` TO `v1.11.0`

## Preconditions

### PHP8.0 support

Sylius v1.11 comes with bump of minimal dependencies of PHP to v8.0. We strongly advice to make upgrade process step by step,
so it is highly recommended updating your PHP version being still on Sylius v1.10, as it is supporting both PHP7.4 and PHP8.0.

After ensuring, that previous step succeed, you may move forward to the Sylius v1.11 update.

## Main update

### "pagerfanta/pagerfanta" semantic_ui_translated removed

The `pagination.html.twig` has been changed to use the Twig view.
Expand Down Expand Up @@ -34,10 +45,20 @@ This obvious dev dependency was part of Sylius requirements. In 1.11 we've moved
}
```

If you were using MockerContainer in your app, you should also execute the following command:

```bash
composer req --dev polishsymfonycommunity/symfony-mocker-container
```

### Drop support for PHP 7.4

Due to the drop of support PHP `7.4` Sylius also will not support it since version `1.11`.

### API Platform required folders

If you don't already have, add an empty directory `api_platform` in your `config` directory and customize there any API resources.

### Potential BC-breaks

#### State machine callbacks
Expand Down
2 changes: 0 additions & 2 deletions UPGRADE-API-1.11.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# UPGRADE FROM `v1.10.X` TO `v1.11.0`

1. If you don't already have, add an empty directory `api_platform` in your `config` directory and customize there any API resources.

1. The product images should have a proper prefix (`/media/image/`) added to the path, so the images could be resolved.
This is now done out of the box and response of `Product Image` resource is now:
Expand Down