Esempio n. 1
0
 /**
  * 匹配method
  * @param RouteInterface $route
  * @return boolean
  */
 protected function matchMethod(RouteInterface $route)
 {
     if (empty($route->getMethods())) {
         return true;
     }
     return in_array(strtolower($this->context->getMethod()), $route->getMethods());
 }