HttpKernel or a dedicated Symfony component layer.bugsnag/bugsnag-symfony, offering granular control over exception handling—useful for Laravel apps already using Bugsnag via Symfony’s integration (e.g., spatie/laravel-bugsnag with Symfony components).HttpKernel (e.g., in a micro-service or API layer).EventDispatcher and HttpKernel could complicate Laravel integration without abstraction.App\Exceptions\Handler) to Symfony’s handled_exceptions/excluded_exceptions.session_per_request assumes Symfony’s session system; Laravel’s session integration would need alignment.HttpException classes may not map cleanly to Symfony’s status code patterns (e.g., 4xx vs. Laravel’s HttpResponse codes).spatie/laravel-bugsnag) suffice with custom logic?Illuminate\Http\Exception\*) align with Symfony’s patterns?session_per_request?Kernel.php)?EventDispatcher)?bugsnag/bugsnag-symfony + this extension.HttpKernel for API routes (e.g., via symfony/http-kernel package) to host this middleware.ExceptionHandler or Events system.app/Http/Middleware/BugsnagFilter.php).spatie/laravel-bugsnag). If using Symfony components, integration is easier.HttpKernel or port logic.excluded_exceptions and excluded_http_codes in a non-critical module.EventDispatcher compatibility with Laravel’s Events system.symfony/http-foundation, symfony/event-dispatcher, etc. Check for conflicts with Laravel’s versions.Throwable hierarchy to Symfony’s ExceptionInterface.Response codes (e.g., 404 vs. Symfony’s 4xx).Session facade or bridge Symfony’s session to Laravel’s storage.config/bugsnag.php.beapp/bugsnag-symfony-ext + required Symfony packages.bugsnag_ext in config/packages/bugsnag_ext.yaml (Symfony) or adapt to Laravel’s config.config/packages/framework.yaml under middleware.app/Http/Kernel.php (if using Symfony’s HttpKernel).App\Exceptions\Handler to delegate to Symfony’s listeners where needed.throwsException() helper.EventDispatcher misconfigurations) may be opaque in Laravel’s context.Bugsnag\Bugsnag::notifyException() for visibility.spatie/laravel-bugsnag if issues arise.session_per_request could impact performance if sessions are heavy; consider caching.| Risk | Impact | Mitigation |
|---|---|---|
| Symfony dependency conflicts | Breaks Laravel’s service container | Use symfony/* packages with Laravel’s version constraints. |
| Exception filtering misconfig | Critical errors logged as handled | Test with NotReportedException in Bugsnag. |
| Session listener failures | Inconsistent session data | Fallback to Laravel’s native session handling. |
| HTTP code pattern mismatches | Exceptions not filtered as expected | Normalize status codes in middleware. |
| Package abandonment | No updates for Symfony/Bugsnag changes | Fork or port logic to a Laravel-native package. |
EventDispatcher vs. Laravel’s Events system.HttpResponse to Symfony’s status codes.How can I help you explore Laravel packages today?