Coduo\TuTu\Request\MethodMatchingPolicy::match PHP Метод

match() публичный Метод

public match ( Request $request, Element $config ) : boolean
$request Symfony\Component\HttpFoundation\Request
$config Coduo\TuTu\Config\Element
Результат boolean
    public function match(Request $request, Element $config)
    {
        if (!count($config->getRequest()->getAllowedMethods())) {
            return true;
        }
        return in_array($request->getMethod(), $config->getRequest()->getAllowedMethods(), true);
    }
MethodMatchingPolicy