Skip to content

Commit

Permalink
Merge pull request #5948 from ecamp/renovate/api-platform-core-3.x
Browse files Browse the repository at this point in the history
fix(deps): update dependency api-platform/core to v3.4.4
  • Loading branch information
BacLuc authored Oct 29, 2024
2 parents fcdace0 + 79571ca commit 3bb1117
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 282 deletions.
4 changes: 2 additions & 2 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"php": ">=8.1.0",
"ext-ctype": "*",
"ext-iconv": "*",
"api-platform/core": "3.3.13",
"api-platform/core": "3.4.4",
"composer/package-versions-deprecated": "1.11.99",
"cweagans/composer-patches": "1.7.3",
"doctrine/doctrine-bundle": "2.13.0",
Expand All @@ -32,7 +32,7 @@
"symfony/dotenv": "7.1.6",
"symfony/expression-language": "7.1.6",
"symfony/flex": "2.4.7",
"symfony/framework-bundle": "7.1.6",
"symfony/framework-bundle": "7.1.5",
"symfony/http-client": "7.1.6",
"symfony/intl": "7.1.6",
"symfony/mailer": "7.1.6",
Expand Down
186 changes: 109 additions & 77 deletions api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions api/config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ api_platform:
order:
createTime: DESC
keep_legacy_inflector: false

# On API-Platform Update - test, if this config is still needed.
# See PR 5948: https://github.com/ecamp/ecamp3/pull/5948
exception_to_status:
# Default
Symfony\Component\Serializer\Exception\ExceptionInterface: 400
ApiPlatform\Metadata\Exception\InvalidArgumentException: 400
ApiPlatform\ParameterValidator\Exception\ValidationExceptionInterface: 400
Doctrine\ORM\OptimisticLockException: 409
# Legacy
ApiPlatform\Exception\InvalidArgumentException: 400
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function create(string $resourceClass, string $property, array $options =
$apiProperty->getIris(),
$apiProperty->getGenId(),
$apiProperty->getUriTemplate(),
$apiProperty->getProperty(),
$apiProperty->getExtraProperties()
);
}
Expand Down
Loading

0 comments on commit 3bb1117

Please sign in to comment.