PHP Class eZ\Publish\Core\REST\Common\Input\Dispatcher

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$handlers array Structure: array( => , … )
$parsingDispatcher ParsingDispatcher

Méthodes publiques

Méthode Description
__construct ( ParsingDispatcher $parsingDispatcher, array $handlers = [] ) Construct from optional parsers array.
addHandler ( string $type, Handler $handler ) Adds another handler for the given Content Type.
parse ( Message $message ) : mixed Parse provided request.

Private Methods

Méthode Description
parseParameters ( $mediaTypePart )

Method Details

__construct() public méthode

Construct from optional parsers array.
public __construct ( ParsingDispatcher $parsingDispatcher, array $handlers = [] )
$parsingDispatcher ParsingDispatcher
$handlers array

addHandler() public méthode

Adds another handler for the given Content Type.
public addHandler ( string $type, Handler $handler )
$type string
$handler Handler

parse() public méthode

Parse provided request.
public parse ( Message $message ) : mixed
$message eZ\Publish\Core\REST\Common\Message
Résultat mixed

Property Details

$handlers protected_oe property

Structure: array( => , … )
protected array $handlers
Résultat array

$parsingDispatcher protected_oe property

protected ParsingDispatcher,eZ\Publish\Core\REST\Common\Input $parsingDispatcher
Résultat ParsingDispatcher