lithium\net\http\Route::_matchMethod()
Helper used by Route::match()
which check if the required http method is compatible
with the route.
Parameters
-
array
$options
An array of URL parameters.
Returns
mixedOn success, returns an updated array of options, On failure, returns false
.
Source
protected function _matchMethod($options) {
$isMatch = (
!isset($this->_meta['http:method']) ||
$options['http:method'] === $this->_meta['http:method']
);
if (!$isMatch) {
return false;
}
unset($options['http:method']);
return $options;
}