protected function composeExcel(array $data, array $config, string $writerType): SymfonyResponse
    {
        $filename = $config['filename'] ?? 'export';

        return $this->convertToExcel($data, $config)->exportExcel($filename, $writerType);
    }