exports: add a new user scope filter

This commit is contained in:
2022-07-18 18:45:02 +02:00
parent 34923df43c
commit 881e608c87
6 changed files with 125 additions and 8 deletions

View File

@@ -26,19 +26,19 @@ services:
tags:
- { name: chill.export, alias: list_person_duplicate }
chill.person.export.count_accompanying_course:
chill.person.export.count_accompanyingcourse:
class: Chill\PersonBundle\Export\Export\CountAccompanyingCourse
arguments:
- "@doctrine.orm.entity_manager"
tags:
- { name: chill.export, alias: count_accompanying_course }
- { name: chill.export, alias: count_accompanyingcourse }
chill.person.export.avg_accompanying_course_duration:
chill.person.export.avg_accompanyingcourse_duration:
class: Chill\PersonBundle\Export\Export\StatAccompanyingCourseDuration
arguments:
- '@Chill\PersonBundle\Repository\AccompanyingPeriodRepository'
tags:
- { name: chill.export, alias: avg_accompanying_course_duration }
- { name: chill.export, alias: avg_accompanyingcourse_duration }
chill.person.export.filter_gender:
class: Chill\PersonBundle\Export\Filter\GenderFilter
@@ -58,6 +58,14 @@ services:
autoconfigure: true
tags:
- { name: chill.export_filter, alias: person_nationality_filter }
chill.person.export.filter_userscope:
class: Chill\PersonBundle\Export\Filter\UserScopeFilter
arguments:
$translator: '@translator'
$translatableStringHelper: '@Chill\MainBundle\Templating\TranslatableStringHelper'
tags:
- { name: chill.export_filter, alias: accompanyingcourse_userscope_filter }
chill.person.export.aggregator_nationality:
class: Chill\PersonBundle\Export\Aggregator\NationalityAggregator