Skip to content

Commit cffbf37

Browse files
committed
4268: Upgraded to API Platform 4.1
1 parent 0569611 commit cffbf37

File tree

5 files changed

+158
-84
lines changed

5 files changed

+158
-84
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"php": ">=8.3",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
10-
"api-platform/core": "^3.4",
10+
"api-platform/core": "^4.1",
1111
"elasticsearch/elasticsearch": "^8.13",
1212
"nelmio/cors-bundle": "^2.4",
1313
"phpdocumentor/reflection-docblock": "^5.3",

composer.lock

Lines changed: 152 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/api_platform.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ api_platform:
5050
# standard_put: true
5151
# https://api-platform.com/docs/core/upgrade-guide/#api-platform-34
5252
rfc_7807_compliant_errors: true
53-
keep_legacy_inflector: false
5453
# Note: The api-platform/core 3.4 recipe wants `use_symfony_listeners` to be true
5554
use_symfony_listeners: false
5655

symfony.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"api-platform/core": {
3-
"version": "3.4",
3+
"version": "4.1",
44
"recipe": {
55
"repo": "github.com/symfony/recipes",
66
"branch": "main",
7-
"version": "3.3",
8-
"ref": "74b45ac570c57eb1fbe56c984091a9ff87e18bab"
7+
"version": "4.0",
8+
"ref": "cb9e6b8ceb9b62f32d41fc8ad72a25d5bd674c6d"
99
},
1010
"files": [
1111
"config/packages/api_platform.yaml",

tests/ApiPlatform/AbstractApiTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
abstract class AbstractApiTestCase extends ApiTestCase
1010
{
11+
protected static ?bool $alwaysBootKernel = false;
12+
1113
protected static string $requestPath;
1214

1315
protected static function createAuthenticatedClient(): Client

0 commit comments

Comments
 (0)