protected function formatJson($response) { parent::formatJson($response); $response->getHeaders()->set('Content-Type', $this->getContentType()); }