Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe SerializerErrorRenderer
+ Graphe d'héritage de SerializerErrorRenderer:

Fonctions membres publiques

 __construct (SerializerInterface $serializer, $format, ErrorRendererInterface $fallbackErrorRenderer=null, $debug=false)
 
 render (\Throwable $exception)
 

Fonctions membres publiques statiques

static getPreferredFormat (RequestStack $requestStack)
 

Attributs privés

 $serializer
 
 $format
 
 $fallbackErrorRenderer
 
 $debug
 

Description détaillée

Formats an exception using Serializer for rendering.

Auteur
Nicolas Grekas p@tch.nosp@m.work.nosp@m..com

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( SerializerInterface  $serializer,
  $format,
ErrorRendererInterface  $fallbackErrorRenderer = null,
  $debug = false 
)
Paramètres
string|callable(FlattenException)$format The format as a string or a callable that should return it formats not supported by Request::getMimeTypes() should be given as mime types
bool | callable$debugThe debugging mode as a boolean or a callable that should return it

Références SerializerErrorRenderer\$debug, SerializerErrorRenderer\$fallbackErrorRenderer, SerializerErrorRenderer\$format, et SerializerErrorRenderer\$serializer.

Documentation des fonctions membres

◆ getPreferredFormat()

static getPreferredFormat ( RequestStack  $requestStack)
static

◆ render()

render ( \Throwable  $exception)

Documentation des champs

◆ $debug

◆ $fallbackErrorRenderer

$fallbackErrorRenderer
private

◆ $format

◆ $serializer

$serializer
private

La documentation de cette classe a été générée à partir du fichier suivant :