/** * {@inheritdoc} */ public function run() { $q = _ark_parse_query_path($this->config->get('route.route_var', 'r')); $q['https'] = $this->request->isSecure(); $q['method'] = $this->request->getMethod(); //Request method validation if (!in_array($q['method'], array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS'))) { $response = Ark::getHttpErrorResponse(405); $this->respond($resonse); } else { $this->dispatchResponseEvent('app.dispatch', $this, $q); } }