mediatekformation

TwigErrorRenderer
in package
implements ErrorRendererInterface

Provides the ability to render custom Twig-based HTML error pages in non-debug mode, otherwise falls back to HtmlErrorRenderer.

Tags
author

Yonel Ceruto yonelceruto@gmail.com

Interfaces, Classes, Traits and Enums

ErrorRendererInterface
Formats an exception to be used as response content.

Table of Contents

$debug  : mixed
$fallbackErrorRenderer  : mixed
$twig  : mixed
__construct()  : mixed
isDebug()  : Closure
render()  : FlattenException
Renders a Throwable as a FlattenException.
findTemplate()  : string|null
templateExists()  : bool
To be removed in 5.0.

Properties

Methods

findTemplate()

private findTemplate(int $statusCode) : string|null
Parameters
$statusCode : int
Return values
string|null

templateExists()

To be removed in 5.0.

private templateExists(string $template) : bool

Use instead:

$this->twig->getLoader()->exists($template)

Parameters
$template : string
Return values
bool

Search results