Example #1
0
 /**
  * set the http methods through which a route can be accessed
  *
  * @param PhRouter\RouteInterface $route
  * @param $methods
  * @return PhRouter\RouteInterface
  */
 public function setHttpMethods(PhRouter\RouteInterface $route, $methods)
 {
     if ($methods === null || empty($methods)) {
         return;
     }
     $route->setHttpMethods($methods);
 }