lithium\net\http\Route::_matchMethod PHP Метод

_matchMethod() защищенный Метод

Helper used by Route::match() which check if the required http method is compatible with the route.
См. также: lithium\net\http\Route::match()
protected _matchMethod ( array $options ) : mixed
$options array An array of URL parameters.
Результат mixed On success, returns an updated array of options, On failure, returns `false`.
    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;
    }