src/Kunstmaan/TranslatorBundle/Service/Command/Exporter/ExportCommandHandler.php
public function executeExportCSVCommand(ExportCommand $exportCommand)
    {
        $translations = $this->getTranslations($exportCommand);
        /** @var CSVFileExporter $exporter */
        $exporter = $this->exporter->getExporterByExtension($exportCommand->getFormat());
        $exporter->setLocales($this->determineLocalesToImport($exportCommand));

        return $exporter->export($translations);
    }
public function executeExportCSVCommand(ExportCommand $exportCommand)
    {
        $translations = $this->getTranslations($exportCommand);
        /** @var CSVFileExporter $exporter */
        $exporter = $this->exporter->getExporterByExtension($exportCommand->getFormat());
        $exporter->setLocales($this->determineLocalesToImport($exportCommand));

        return $exporter->export($translations);
    }
public function executeExportCSVCommand ( ExportCommand $ exportCommand ) { $ translations = $ this -> getTranslations ( $ exportCommand ) ; /** @var CSVFileExporter $exporter */ $ exporter = $ this -> exporter -> getExporterByExtension ( $ exportCommand -> getFormat ( ) ) ; $ exporter -> setLocales ( $ this -> determineLocalesToImport ( $ exportCommand ) ) ; return $ exporter -> export ( $ translations ) ; }
Execute an export to CSV command.

@param ExportCommand $exportCommand

@return string|Response
Execute an export to CSV command .