Skip to content

Commit 12176f9

Browse files
committed
api: split api-platform/core dependency
This is recommended in their templates. For that we need to use another Error class, the one used to create ValidationError was in the core library. Lite this we don't depend on e.g. the ODM part. And we can move the graphql part to require-dev, because we don't want to activate this in prod yet.
1 parent 60d4696 commit 12176f9

File tree

5 files changed

+1488
-166
lines changed

5 files changed

+1488
-166
lines changed

api/composer.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55
"php": ">=8.4.0",
66
"ext-ctype": "*",
77
"ext-iconv": "*",
8-
"api-platform/core": "4.1.20",
8+
"api-platform/doctrine-orm": "4.1.20",
9+
"api-platform/http-cache": "4.1.20",
10+
"api-platform/json-api": "4.1.20",
11+
"api-platform/json-hal": "4.1.20",
12+
"api-platform/metadata": "4.1.20",
13+
"api-platform/openapi": "4.1.20",
14+
"api-platform/serializer": "4.1.20",
15+
"api-platform/state": "4.1.20",
16+
"api-platform/symfony": "4.1.20",
917
"composer/package-versions-deprecated": "1.11.99",
1018
"cweagans/composer-patches": "1.7.3",
1119
"doctrine/common": "3.5.0",
@@ -52,6 +60,7 @@
5260
"webonyx/graphql-php": "15.24.0"
5361
},
5462
"require-dev": {
63+
"api-platform/graphql": "4.1.20",
5564
"brianium/paratest": "v7.11.0",
5665
"friendsofphp/php-cs-fixer": "3.86.0",
5766
"hautelook/alice-bundle": "2.15.1",
@@ -151,7 +160,7 @@
151160
"extra": {
152161
"composer-exit-on-patch-failure": true,
153162
"patches": {
154-
"api-platform/core": {
163+
"api-platform/json-hal": {
155164
"Allow NULL-Links": "patch/api-plattform-allow-null-links.patch"
156165
}
157166
}

0 commit comments

Comments
 (0)