Coduo\TuTu\Request\MatchingPolicy::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);

Usage Example

Example #1
0
 /**
  * @param Request $request
  * @return Element|null
  */
 public function resolveConfigElement(Request $request)
 {
     foreach ($this->configs as $config) {
         if ($this->matchingPolicy->match($request, $config)) {
             return $config;
         }
     }
     return null;
 }
All Usage Examples Of Coduo\TuTu\Request\MatchingPolicy::match
MatchingPolicy