PHP Class eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\Exception

Inheritance: extends eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor
Exibir arquivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$debug boolean Is debug mode enabled?
$httpStatusCodes array Mapping of HTTP status codes to their respective error messages.
$translator Symfony\Component\Translation\TranslatorInterface

Public Methods

Method Description
__construct ( boolean $debug = false, Symfony\Component\Translation\TranslatorInterface $translator = null ) Construct from debug flag.
visit ( Visitor $visitor, Generator $generator, Exception $data ) Visit struct returned by controllers.

Protected Methods

Method Description
getStatus ( ) : integer Returns HTTP status code.

Method Details

__construct() public method

Construct from debug flag.
public __construct ( boolean $debug = false, Symfony\Component\Translation\TranslatorInterface $translator = null )
$debug boolean
$translator Symfony\Component\Translation\TranslatorInterface

getStatus() protected method

Returns HTTP status code.
protected getStatus ( ) : integer
return integer

visit() public method

Visit struct returned by controllers.
public visit ( Visitor $visitor, Generator $generator, Exception $data )
$visitor eZ\Publish\Core\REST\Common\Output\Visitor
$generator eZ\Publish\Core\REST\Common\Output\Generator
$data Exception

Property Details

$debug protected_oe property

Is debug mode enabled?
protected bool $debug
return boolean

$httpStatusCodes protected_oe property

Mapping of HTTP status codes to their respective error messages.
protected array $httpStatusCodes
return array

$translator protected_oe property

protected TranslatorInterface,Symfony\Component\Translation $translator
return Symfony\Component\Translation\TranslatorInterface