symfony/http-kernel
Symfony HttpKernel turns HTTP Requests into Responses via an event-driven workflow powered by EventDispatcher. It’s the core of Symfony’s request handling and flexible enough for full-stack frameworks, micro-frameworks, or CMS platforms like Drupal.
Laravel Compatibility:
symfony/http-kernel. The core middleware pipeline, event system, and HTTP layer remain compatible.#[IsGranted('ROLE_USER')]) by preserving resolver behavior. This aligns with Laravel’s Illuminate\Routing\Attributes system.IsGranted, IsCsrfTokenValid, and IsSignatureValid attributes, which are directly relevant to Laravel’s Illuminate\Routing\Middleware and Illuminate\Http\Request validation. This is a proactive mitigation for Laravel’s attribute-based middleware.EventDispatcher remains unchanged, so Laravel’s event system (e.g., Illuminate\Events) can still leverage Symfony events (e.g., kernel.request) without conflicts.Laravel-Specific Considerations:
Illuminate\Routing\Attributes (introduced in Laravel 10.x). This reduces friction for teams using attribute routing.Symfony\Component\Security\Http\Attribute\IsGranted). Laravel’s native Can middleware is unaffected but may benefit from indirect improvements.HttpCache or sub-request capabilities, which remain fully compatible with Laravel’s caching drivers and Blade templates.symfony/security-bundle). No action is needed unless explicitly using those components.subRequest() method, so partial rendering use cases remain feasible.kernel.controller).| Risk Area | Severity (Updated) | Mitigation Strategy |
|---|---|---|
| Breaking Changes | Low | No breaking changes in this release. Security and bug fixes only. |
| Middleware Conflicts | Medium | Attribute resolver fix (#64214) reduces conflicts for attribute-based middleware. |
| Security Vulnerabilities | High (Mitigated) | CVE-2026-45075 is patched; ensure Symfony components are updated to avoid future risks. |
| Performance Overhead | Low | No performance-related changes. Benchmark as before. |
| Debugging Complexity | Medium | Leverage Symfony’s Profiler alongside Laravel’s debugbar for cross-component tracing. |
| Container Conflicts | Low | No changes to DI container; bind services explicitly if needed. |
IsGranted, IsCsrfTokenValid) in Laravel? If so, this release directly mitigates a security risk (#cve-2026-45075).#[Middleware('auth')]) or Symfony’s #[IsGranted]? The named-attribute fix (#64214) improves reliability.symfony/security-bundle) to ensure consistency?Laravel Ecosystem:
Illuminate\Routing\Attributes.Middleware interface remains unchanged; Laravel’s middleware can still be wrapped or extended.Validator and RequestPayload resolvers work as before.HttpCache integration is unaffected.Request/Response classes may still need adapters for advanced Symfony features (e.g., StreamedResponse).Non-Laravel Dependencies:
Phase 1: Validation (Low Risk)
symfony/http-kernel to 8.1.0-BETA3 in composer.json.#[IsGranted]) and Laravel’s #[Middleware].IsCsrfTokenValid) if used.Phase 2: Security Hardening (Medium Risk)
Phase 3: Feature Adoption (Optional)
| Component | Compatibility Status | Notes |
|---|---|---|
| Laravel Middleware | High | Attribute resolver fix (#64214) improves reliability. |
| Attribute Routing | High | Named-attribute overrides now work correctly with Laravel 10.x+. |
| Security Attributes | High | CVE-2026-45075 is patched; HEAD requests are now secure. |
| Routing | High | No changes to Symfony’s router; Laravel’s router remains compatible. |
| Validation | High | Symfony’s Validator works as before. |
| Caching | High | HttpCache integration unchanged. |
| Events | High | No changes to EventDispatcher. |
symfony/http-kernel to 8.1.0-BETA3 and run composer update.#[IsGranted], #[Middleware], and custom attributes.How can I help you explore Laravel packages today?