Skip to content

feat(api): upgrade to API Platform 4.3 and Symfony 8 - #677

Merged
soyuka merged 1 commit into
stagingfrom
feat/api-platform-4.3-symfony-8
Jun 12, 2026
Merged

feat(api): upgrade to API Platform 4.3 and Symfony 8#677
soyuka merged 1 commit into
stagingfrom
feat/api-platform-4.3-symfony-8

Conversation

@soyuka

@soyuka soyuka commented Jun 12, 2026

Copy link
Copy Markdown
Member

Upgrades the api/ (Symfony) backend two majors: API Platform 3 → 4.3 and Symfony 6.2 → 8.1. Targets staging.

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 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 (Symfony 8 requirement)

Config

  • Dropped 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-autocomplete artifact)

Verification

  • composer audit — clean
  • lint:container — OK
  • cache:clear --env=prod — OK
  • debug:api-resource App\Entity\Greeting — wires all 5 REST operations under API Platform 4

Notes

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.
@soyuka
soyuka merged commit d157015 into staging Jun 12, 2026
@soyuka
soyuka deleted the feat/api-platform-4.3-symfony-8 branch June 12, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant