Class

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

class Dispatcher

Input dispatcher.

Methods

__construct(ParsingDispatcher $parsingDispatcher, array $handlers = array())

Construct from optional parsers array.

addHandler(string $type, Handler $handler)

Adds another handler for the given Content Type.

mixed parse(Message $message)

Parse provided request.

Details

at line 46
public __construct(ParsingDispatcher $parsingDispatcher, array $handlers = array())

Construct from optional parsers array.

Parameters

ParsingDispatcher $parsingDispatcher
array $handlers

at line 60
public addHandler(string $type, Handler $handler)

Adds another handler for the given Content Type.

Parameters

string $type
Handler $handler

at line 72
public mixed parse(Message $message)

Parse provided request.

Parameters

Message $message

Return Value

mixed