Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The most common way to listen to an event is to register an **event listener**::
// Customize your response object to display the exception details
$response = new Response();
$response->setContent($message);
$response->headers->set('Content-Type', 'text/plain; charset=utf-8');

// HttpExceptionInterface is a special type of exception that
// holds status code and header details
Expand Down
Loading