Coduo\TuTu\Request\ChainMatchingPolicy::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($this->matchingPolicies)) {
            return false;
        }
        foreach ($this->matchingPolicies as $matchingPolicy) {
            if (!$matchingPolicy->match($request, $config)) {
                return false;
            }
        }
        return true;
    }