Example #1
0
 /**
  * (non-PHPdoc)
  * @see \Slince\Router\Validator\ValidatorInterface::validate()
  */
 function validate(RouteInterface $route, RequestContext $context)
 {
     return !$route->getMethods() || in_array($context->getMethod(), $route->getMethods());
 }