diff --git a/Export/Formatter/CSVListFormatter.php b/Export/Formatter/CSVListFormatter.php index b92ea78de..b3d004819 100644 --- a/Export/Formatter/CSVListFormatter.php +++ b/Export/Formatter/CSVListFormatter.php @@ -64,13 +64,13 @@ class CSVListFormatter implements FormatterInterface protected $translator; - - public function __construct(TranslatorInterface $translator, ExportManager $manager) + public function __construct(TranslatorInterface $translatorInterface, ExportManager $exportManager) { - $this->translator = $translator; - $this->exportManager = $manager; + $this->translator = $translatorInterface; + $this->exportManager = $exportManager; } - + + public function getType() { return FormatterInterface::TYPE_LIST; diff --git a/Export/Formatter/CSVPivotedListFormatter.php b/Export/Formatter/CSVPivotedListFormatter.php index d83193be5..7d3087752 100644 --- a/Export/Formatter/CSVPivotedListFormatter.php +++ b/Export/Formatter/CSVPivotedListFormatter.php @@ -64,10 +64,10 @@ class CSVPivotedListFormatter implements FormatterInterface - public function __construct(TranslatorInterface $translator, ExportManager $manager) + public function __construct(TranslatorInterface $translatorInterface, ExportManager $exportManager) { - $this->translator = $translator; - $this->exportManager = $manager; + $this->translator = $translatorInterface; + $this->exportManager = $exportManager; } public function getType() diff --git a/Export/Formatter/SpreadsheetListFormatter.php b/Export/Formatter/SpreadsheetListFormatter.php index debc17de4..221375f0b 100644 --- a/Export/Formatter/SpreadsheetListFormatter.php +++ b/Export/Formatter/SpreadsheetListFormatter.php @@ -68,10 +68,10 @@ class SpreadsheetListFormatter implements FormatterInterface - public function __construct(TranslatorInterface $translator, ExportManager $manager) + public function __construct(TranslatorInterface $translatorInterface, ExportManager $exportManager) { - $this->translator = $translator; - $this->exportManager = $manager; + $this->translator = $translatorInterface; + $this->exportManager = $exportManager; } public function getType() diff --git a/Resources/config/services/export.yml b/Resources/config/services/export.yml index f49173b70..ac49199af 100644 --- a/Resources/config/services/export.yml +++ b/Resources/config/services/export.yml @@ -15,28 +15,32 @@ services: chill.main.export.spreadsheet_formatter: class: Chill\MainBundle\Export\Formatter\SpreadSheetFormatter arguments: - - "@translator" + $translatorInterface: '@Symfony\Component\Translation\TranslatorInterface' + $exportManager: '@Chill\MainBundle\Export\ExportManager' tags: - { name: chill.export_formatter, alias: 'spreadsheet' } chill.main.export.list_formatter: class: Chill\MainBundle\Export\Formatter\CSVListFormatter arguments: - - "@translator" + $translatorInterface: '@Symfony\Component\Translation\TranslatorInterface' + $exportManager: '@Chill\MainBundle\Export\ExportManager' tags: - { name: chill.export_formatter, alias: 'csvlist' } chill.main.export.list_spreadsheet_formatter: class: Chill\MainBundle\Export\Formatter\SpreadsheetListFormatter arguments: - - "@translator" + $translatorInterface: '@Symfony\Component\Translation\TranslatorInterface' + $exportManager: '@Chill\MainBundle\Export\ExportManager' tags: - { name: chill.export_formatter, alias: 'spreadlist' } chill.main.export.pivoted_list_formatter: class: Chill\MainBundle\Export\Formatter\CSVPivotedListFormatter arguments: - - "@translator" + $translatorInterface: '@Symfony\Component\Translation\TranslatorInterface' + $exportManager: '@Chill\MainBundle\Export\ExportManager' tags: - { name: chill.export_formatter, alias: 'csv_pivoted_list' } \ No newline at end of file