From 4cbed242eeca752467b2da9dbaf20eff226c2f5a Mon Sep 17 00:00:00 2001 From: Pavel Kameisha <121437865+pkameisha@users.noreply.github.com> Date: Mon, 2 Jan 2023 22:42:30 +0300 Subject: [PATCH] Added alias for ExporterInterface (#621) Co-authored-by: Pavel Kameisha --- src/Bridge/Symfony/Resources/config/services.php | 2 ++ 1 file changed, 2 insertions(+) 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'); };