Пример #1
0
 public static function isPost()
 {
     return Method::isPost(self::getServer('REQUEST_METHOD'));
 }
Пример #2
0
 public function setRequireHttpMethod($requireHttpMethod)
 {
     if (!is_null($requireHttpMethod) && !Method::isValid($requireHttpMethod)) {
         throw new \Exception('Route requireHttpMethod parameter must null or a valid HTTP METHOD');
     }
     $this->_requireHttpMethod = $requireHttpMethod;
 }