Example #1
0
 protected function getGlobalsVars()
 {
     if ($this->request->isPost() && in_array('POST', $this->verbs, true)) {
         return Request::post();
     }
     if ($this->request->isGet() && in_array('GET', $this->verbs, true)) {
         return Request::get();
     }
     if ($this->request->isPut() && in_array('PUT', $this->verbs, true)) {
         return Request::post();
     }
     if ($this->request->isDelete() && in_array('DELETE', $this->verbs, true)) {
         return Request::post();
     }
     return [];
 }