/** * @return mixed */ protected function preProcess() { // Do validation here $this->validateResourceAccess(); parent::preProcess(); }
/** * A chance to pre-process the data. * * @return mixed|void */ protected function preProcess() { parent::preProcess(); $this->checkPermission($this->getRequestedAction(), $this->name); // set outbound parameters $this->buildParameterString($this->parameters, $this->action, $this->query, $this->cacheQuery, $this->request->getParameters()); // set outbound headers $this->addHeaders($this->headers, $this->action, $this->curlOptions); }