Coduo\TuTu\Request\MethodMatchingPolicy::match PHP Method

match() public method

public match ( Request $request, Element $config ) : boolean
$request Symfony\Component\HttpFoundation\Request
$config Coduo\TuTu\Config\Element
return 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