diff --git a/src/Bridge/Symfony/Resources/config/services.php b/src/Bridge/Symfony/Resources/config/services.php index 101dd5b7..fc0b3d55 100644 --- a/src/Bridge/Symfony/Resources/config/services.php +++ b/src/Bridge/Symfony/Resources/config/services.php @@ -15,6 +15,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; use Sonata\Exporter\Exporter; +use Sonata\Exporter\ExporterInterface; use Sonata\Exporter\Writer\CsvWriter; use Sonata\Exporter\Writer\JsonWriter; use Sonata\Exporter\Writer\XlsWriter; @@ -65,4 +66,5 @@ ->public(); $services->alias(Exporter::class, 'sonata.exporter.exporter'); + $services->alias(ExporterInterface::class, 'sonata.exporter.exporter'); };