feat(api): upgrade to API Platform 4.3 and Symfony 8 - #677
Merged
Conversation
Bump the api/ backend two majors. Symfony 8 requires PHP >=8.4. Dependencies: - api-platform/core ^3.0 -> ^4.3 (resolves 4.3.10) - symfony/* 6.2.* -> 8.1.* (resolves 8.1.0) - doctrine/orm ^2.12 -> ^3.6, doctrine-bundle ^2.7 -> ^3.2, doctrine-migrations-bundle ^3.2 -> ^4.0 (required for Symfony 8) - monolog-bundle ^3.8 -> ^4.0, mercure-bundle ^0.3.5 -> ^0.4, nelmio/cors-bundle ^2.2 -> ^2.6 - php >=8.2 -> >=8.4 Config: - drop doctrine ORM proxy options removed in doctrine-bundle 3 (auto_generate_proxy_classes, proxy_dir, enable_lazy_ghost_objects) now no-ops with native lazy objects - gitignore /config/reference.php (Symfony 8 generated IDE artifact) Verified: composer audit clean, lint:container OK, prod cache:clear OK, Greeting resource wires all 5 REST operations under API Platform 4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades the
api/(Symfony) backend two majors: API Platform 3 → 4.3 and Symfony 6.2 → 8.1. Targetsstaging.Split out from the frontend security PR (#676) per request — that PR is pwa-only, this one is api-only.
Dependencies
api-platform/core ^3.0 → ^4.3(resolves 4.3.10)symfony/* 6.2.* → 8.1.*(resolves 8.1.0)doctrine/orm ^2.12 → ^3.6,doctrine-bundle ^2.7 → ^3.2,doctrine-migrations-bundle ^3.2 → ^4.0— required for Symfony 8monolog-bundle ^3.8 → ^4.0,mercure-bundle ^0.3.5 → ^0.4,nelmio/cors-bundle ^2.2 → ^2.6php >=8.2 → >=8.4(Symfony 8 requirement)Config
auto_generate_proxy_classes,proxy_dir,enable_lazy_ghost_objects) — now no-ops with native lazy objects/config/reference.php(Symfony 8 generated IDE-autocomplete artifact)Verification
composer audit— cleanlint:container— OKcache:clear --env=prod— OKdebug:api-resource App\Entity\Greeting— wires all 5 REST operations under API Platform 4Notes
HttpKernel\...\Extensionclass — not our code.