ExceptionController
class ExceptionController
ExceptionController renders error or exception pages for a given FlattenException.
Properties
protected | $twig | ||
protected | $debug |
Methods
__construct(Environment $twig, bool $debug)
No description
showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null)
Converts an Exception to a Response.
string
getAndCleanOutputBuffering(int $startObLevel)
No description
string
templateExists($template)
No description
Details
Response
showAction(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null)
Converts an Exception to a Response.
A "showException" request parameter can be used to force display of an error page (when set to false) or the exception page (when true). If it is not present, the "debug" value passed into the constructor will be used.