Skip to content

Commit 58e4ed4

Browse files
committed
docs: changelog 3.3.1
[ci skip]
1 parent e2d07e0 commit 58e4ed4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## v3.3.1
4+
5+
### Bug fixes
6+
7+
* [6f806f4ee](https://github.com/api-platform/core/commit/6f806f4eeec3d120da7a4c145f9dbda9bd4be2ed) fix(state): read without output (#6347)
8+
* [735e1509e](https://github.com/api-platform/core/commit/735e1509ef67deb1c4c837ff86b445f40e2f7c8b) fix(symfony): set normalization context in request attributes (#6345)
9+
* [f63fd8101](https://github.com/api-platform/core/commit/f63fd8101f8211707806e013668f50dafab2865d) fix(symfony): define use_symfony_listeners (#6344)
10+
11+
### Notes
12+
13+
You can remove the `event_listeners_backward_compatibility_layer` flag and set `use_symfony_listeners` instead. The `use_symfony_listeners` should be `true` if you use controllers or if you rely on Symfony event listeners. Note that now flags like `read` can be forced to `true` if you want to call a Provider even on `POST` operations. These are the rules we set up on runtime if no value has been set:
14+
15+
```php
16+
if (null === $operation->canValidate()) {
17+
$operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
18+
}
19+
20+
if (null === $operation->canRead()) {
21+
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
22+
}
23+
24+
if (null === $operation->canDeserialize()) {
25+
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
26+
}
27+
```
28+
29+
Previously listeners did the checks before reading our flags and you could not force the values.
30+
331
## v3.3.0
432

533
### Bug fixes

0 commit comments

Comments
 (0)