Skip to content

Commit

Permalink
chore: use api-platform/symfony:^4.0 instead of api-platform/core (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon authored Sep 19, 2024
1 parent 0bc35e8 commit d8b5c41
Show file tree
Hide file tree
Showing 7 changed files with 441 additions and 455 deletions.
18 changes: 3 additions & 15 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"api-platform/doctrine-orm": "^3.4",
"api-platform/graphql": "^3.4",
"api-platform/symfony": "^3.4",
"api-platform/doctrine-orm": "^4.0",
"api-platform/graphql": "^4.0",
"api-platform/symfony": "^4.0",
"doctrine/common": "^3.4",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-fixtures-bundle": "^3.5",
Expand Down Expand Up @@ -105,18 +105,6 @@
]
},
"conflict": {
"api-platform/doctrine-common": "^4.0@alpha",
"api-platform/documentation": "^4.0@alpha",
"api-platform/graphql": "^4.0@alpha",
"api-platform/http-cache": "^4.0@alpha",
"api-platform/hydra": "^4.0@alpha",
"api-platform/json-schema": "^4.0@alpha",
"api-platform/jsonld": "^4.0@alpha",
"api-platform/metadata": "^4.0@alpha",
"api-platform/openapi": "^4.0@alpha",
"api-platform/serializer": "^4.0@alpha",
"api-platform/state": "^4.0@alpha",
"api-platform/validator": "^4.0@alpha",
"symfony/symfony": "*"
},
"extra": {
Expand Down
852 changes: 435 additions & 417 deletions api/composer.lock

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions api/config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
api_platform:
title: API Platform's demo
version: 3.4.0
version: 4.0.0
description: |
This is a demo application of the [API Platform](https://api-platform.com) framework.
[Its source code](https://github.com/api-platform/demo) includes various examples, check it out!
Expand Down Expand Up @@ -28,9 +28,6 @@ api_platform:
extra_properties:
standard_put: true
rfc_7807_compliant_errors: true
use_symfony_listeners: false
event_listeners_backward_compatibility_layer: false
keep_legacy_inflector: false
serializer:
hydra_prefix: true
oauth:
Expand Down
3 changes: 0 additions & 3 deletions api/phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ parameters:
- src/Kernel.php
ignoreErrors:
- message: '#no (?:return|value) type specified in iterable type array\.#'
# 3.4 BC layer
- message: '#Call to an undefined method ApiPlatform\\Metadata\\IriConverterInterface::getIriFromResource\(\)\.#'
- message: '#Access to undefined constant ApiPlatform\\Metadata\\UrlGeneratorInterface.+#'
Empty file added api/src/ApiResource/.gitignore
Empty file.
14 changes: 0 additions & 14 deletions api/symfony.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"api-platform/core": {
"version": "3.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "3.2",
"ref": "696d44adc3c0d4f5d25a2f1c4f3700dd8a5c6db9"
},
"files": [
"config/packages/api_platform.yaml",
"config/routes/api_platform.yaml",
"src/ApiResource/.gitignore"
]
},
"api-platform/schema-generator": {
"version": "v4.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions helm/api-platform/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.4.0
version: 4.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 3.4.0
appVersion: 4.0.0

dependencies:
- name: postgresql
Expand Down

0 comments on commit d8b5c41

Please sign in to comment.