Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use api-platform/symfony:^4.0 instead of api-platform/core #441

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading