public function match(Http\IRequest $httpRequest)
{
$appRequest = parent::match($httpRequest);
if (!$appRequest) {
return NULL;
}
// Check requested method
$methodFlag = $this->getMethod($httpRequest);
if (!$this->isMethod($methodFlag)) {
return NULL;
}
// If there is action dictionary, set method
if ($this->actionDictionary) {
$parameters = $appRequest->getParameters();
$parameters['action'] = $this->actionDictionary[$methodFlag];
$parameters['action'] = self::formatActionName($this->actionDictionary[$methodFlag], $parameters);
$appRequest->setParameters($parameters);
}
return $appRequest;
}