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

Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$handlers array Structure: array( => , … )
$parsingDispatcher ParsingDispatcher

Public Methods

Method 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

Method Description
parseParameters ( $mediaTypePart )

Method Details

__construct() public method

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

addHandler() public method

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

parse() public method

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

Property Details

$handlers protected property

Structure: array( => , … )
protected array $handlers
return array

$parsingDispatcher protected property

protected ParsingDispatcher,eZ\Publish\Core\REST\Common\Input $parsingDispatcher
return ParsingDispatcher