Skip to content

Commit 6b5c5a5

Browse files
committed
Merge branch '3.4' into 4.0
2 parents ac139e3 + 5db8eb8 commit 6b5c5a5

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

core/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ api_platform:
6868
# Enable the data collector and the WebProfilerBundle integration.
6969
enable_profiler: true
7070

71-
collection:
71+
collection:
7272
# The name of the query parameter to filter nullable results (with the ExistsFilter).
7373
exists_parameter_name: 'exists'
7474

core/upgrade-guide.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Upgrade Guide
22

3-
## API Platform 3.4
3+
## API Platform 3.4
44

55
Remove the `keep_legacy_inflector`, the `event_listeners_backward_compatibility_layer` and the `rfc_7807_compliant_errors` flag:
66

@@ -17,8 +17,8 @@ If you use a custom normalizer for validation exception use:
1717

1818
```yaml
1919
api_platform:
20-
validator:
21-
legacy_validation_exception: true
20+
validator:
21+
legacy_validation_exception: true
2222
```
2323
2424
Indeed, we will throw another validation class in API Platform 4 we will throw `ApiPlatform\Validator\Exception\ValidationException` instead of `ApiPlatform\Symfony\Validator\Exception\ValidationException`
@@ -27,7 +27,7 @@ It's really important to add the `use_symfony_listeners` flag, set to `true` if
2727

2828
```yaml
2929
api_platform:
30-
use_symfony_listeners: false
30+
use_symfony_listeners: false
3131
```
3232

3333
The `keep_legacy_inflector` flag will be removed from API Platform 4, you need to fix your issues first. In API Platform 3.4, the Inflector is available as a service that you can configure through:
@@ -55,6 +55,20 @@ api_platform:
5555
standard_put: true
5656
```
5757

58+
We recommend using the standalone API Platform packages instead of the Core monolithic repository.
59+
60+
Update your `composer.json` like that:
61+
62+
```patch
63+
{
64+
"require": {
65+
- "api-platform/core": "^3",
66+
+ "api-platform/symfony": "^3 || ^4"
67+
+ // also add the extra packages you need, like "api-platform/doctrine-orm"
68+
}
69+
}
70+
```
71+
5872
## API Platform 3.1/3.2
5973

6074
This is the recommended configuration for API Platform 3.2. We review each of these changes in this document.

symfony/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For development purposes such as debugging tests or remote API requests,
1010
To enable it, run:
1111

1212
```console
13-
XDEBUG_MODE=debug docker compose up --wait
13+
XDEBUG_MODE=debug XDEBUG_SESSION=1 docker compose up --wait
1414
```
1515

1616
## Using Xdebug with PhpStorm

0 commit comments

Comments
 (0)