/** * Filter executed AFTER a request * * @param SS_HTTPRequest $request Request container object * @param SS_HTTPResponse $response Response output object * @param DataModel $model Current DataModel * @return boolean Whether to continue processing other filters. Null or true will continue processing (optional) */ public function postRequest(SS_HTTPRequest $request, SS_HTTPResponse $response, DataModel $model) { if (isset($this->clockwork)) { $response->addHeader("X-Clockwork-Id", $this->clockwork->getRequest()->id); $response->addHeader("X-Clockwork-Version", Clockwork::VERSION); $response->addHeader('X-Clockwork-Path', Director::baseURL() . '__clockwork/'); $this->clockwork->resolveRequest(); $this->clockwork->storeRequest(); } }
/** * Store request via storage object * * @static */ public static function storeRequest() { return \Clockwork\Clockwork::storeRequest(); }