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

        return $this->convertToExcel($data, $config)->exportExcel($filename, $writerType);
    }
protected function composeExcel(array $data, array $config, string $writerType): SymfonyResponse
    {
        $filename = $config['filename'] ?? 'export';

        return $this->convertToExcel($data, $config)->exportExcel($filename, $writerType);
    }
protected function composeExcel ( array $ data , array $ config , string $ writerType ) : SymfonyResponse { $ filename = $ config [ 'filename' ] ?? 'export' ; return $ this -> convertToExcel ( $ data , $ config ) -> exportExcel ( $ filename , $ writerType ) ; }
Compose excel.

@param  array  $data
@param  array  $config
@param  string  $writerType

@return \Symfony\Component\HttpFoundation\Response
Compose excel .