Add DI configuration for the export of period step history data within the ChillPersonBundle

This commit adds dependency injection configuration for the export of period step history data within the ChillPersonBundle. It specifically configures exports, filters, and aggregators, all related to the accompanying period step history. Additionally, it updates ChillPersonExtension to load this newly created configuration.
This commit is contained in:
Julien Fastré 2024-01-29 13:30:37 +01:00
parent 5849d8d670
commit 21bd6478ad
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 32 additions and 0 deletions

View File

@ -98,6 +98,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
$loader->load('services/exports_accompanying_course.yaml'); $loader->load('services/exports_accompanying_course.yaml');
$loader->load('services/exports_social_actions.yaml'); $loader->load('services/exports_social_actions.yaml');
$loader->load('services/exports_evaluation.yaml'); $loader->load('services/exports_evaluation.yaml');
$loader->load('services/exports_accompanying_period_step_history.yaml');
} }
$loader->load('services/exports_household.yaml'); $loader->load('services/exports_household.yaml');

View File

@ -0,0 +1,31 @@
services:
_defaults:
autowire: true
autoconfigure: true
# exports
Chill\PersonBundle\Export\Export\CountAccompanyingCourseStepHistory:
tags:
- { name: chill.export, alias: count_acpstephistory }
# filters
Chill\PersonBundle\Export\Filter\AccompanyingPeriodStepHistoryFilters\ByDateFilter:
tags:
- { name: chill.export_filter, alias: acpstephistory_filter_by_date }
Chill\PersonBundle\Export\Filter\AccompanyingPeriodStepHistoryFilters\ByStepFilter:
tags:
- { name: chill.export_filter, alias: acpstephistory_filter_by_step }
# aggregators
Chill\PersonBundle\Export\Aggregator\AccompanyingPeriodStepHistoryAggregators\ByClosingMotiveAggregator:
tags:
- { name: chill.export_aggregator, alias: acpstephistory_agg_by_closing_motive }
Chill\PersonBundle\Export\Aggregator\AccompanyingPeriodStepHistoryAggregators\ByDateAggregator:
tags:
- { name: chill.export_aggregator, alias: acpstephistory_agg_by_date }
Chill\PersonBundle\Export\Aggregator\AccompanyingPeriodStepHistoryAggregators\ByStepAggregator:
tags:
- { name: chill.export_aggregator, alias: acpstephistory_agg_by_step }