Matcher
in package
Generates the match dictionary for the incoming request.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- $mapper : Mapper
- The routes mapper.
- $match_dict : array<string|int, mixed>|Horde_Support_Array
- The match dictionary.
- $request : Horde_Controller_Request|ServerRequestInterface
- The incoming request.
- __construct() : mixed
- Constructor
- getMatchDict() : array<string|int, mixed>
- Return the match dictionary for the incoming request.
Properties
$mapper
The routes mapper.
protected
Mapper
$mapper
$match_dict
The match dictionary.
protected
array<string|int, mixed>|Horde_Support_Array
$match_dict
$request
The incoming request.
protected
Horde_Controller_Request|ServerRequestInterface
$request
Methods
__construct()
Constructor
public
__construct(Mapper $mapper, Horde_Controller_Request|ServerRequestInterface $request) : mixed
Parameters
- $mapper : Mapper
-
The mapper
- $request : Horde_Controller_Request|ServerRequestInterface
-
A request object that implements a ::getPath() method similar to Horde_Controller_Request::
Return values
mixed —getMatchDict()
Return the match dictionary for the incoming request.
public
getMatchDict() : array<string|int, mixed>
Return values
array<string|int, mixed> —The match dictionary.