protected function configureOutputFormat()
    {
        $requestFormat = $this->request->input('format');

        $this->format = config('transfugio.http.format');

        if ($this->request->wantsJson()) {
            $this->format = 'json_accept';
        }

        if (in_array($requestFormat, ['json', 'xml', 'yaml', 'html'])) {
            $this->format = $requestFormat;
        }
    }