W3cubDocs

/Symfony 4.1

ExceptionController

class ExceptionController

ExceptionController.

Properties

protected $twig
protected $debug
protected $profiler

Methods

__construct(Profiler $profiler = null, Environment $twig, bool $debug, FileLinkFormatter $fileLinkFormat = null)
Response showAction(string $token)

Renders the exception panel for the given token.

Response cssAction(string $token)

Renders the exception panel stylesheet for the given token.

getTemplate()
templateExists($template)

Details

__construct(Profiler $profiler = null, Environment $twig, bool $debug, FileLinkFormatter $fileLinkFormat = null)

Parameters

Profiler $profiler
Environment $twig
bool $debug
FileLinkFormatter $fileLinkFormat

Response showAction(string $token)

Renders the exception panel for the given token.

Parameters

string $token The profiler token

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response cssAction(string $token)

Renders the exception panel stylesheet for the given token.

Parameters

string $token The profiler token

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

protected getTemplate()

protected templateExists($template)

Parameters

$template

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/WebProfilerBundle/Controller/ExceptionController.html