samson/unexpected-response-bundle

Allows throwing a response from virtually anywhere

Maintainers

Package info

github.com/SamsonIT/UnexpectedResponseBundle

Type:symfony-bundle

pkg:composer/samson/unexpected-response-bundle

Statistics

Installs: 7 627

Dependents: 2

Suggesters: 0

Stars: 1

Open Issues: 0

0.1.3 2014-08-08 07:54 UTC

This package is auto-updated.

Last update: 2026-02-20 23:32:46 UTC


README

Hooks into the deepest level of Symfony exceptions to allow throwing an UnexpectedResponseException, which is caught and forwarded to the client.

This means that you can throw an exception from any level in code, current code flow is aborted, and the response object passed to the UnexpectedResponseException is sent back to the client.