moving export services definition to new file

This commit is contained in:
Julien Fastré 2017-01-12 14:42:18 +01:00
parent 96bb765b03
commit a7dfc5e1bd
3 changed files with 20 additions and 19 deletions

View File

@ -49,6 +49,7 @@ class ChillActivityExtension extends Extension implements PrependExtensionInterf
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$loader->load('services/export.yml');
$loader->load('services/repositories.yml');
}

View File

@ -57,22 +57,3 @@ services:
- '@security.token_storage'
tags:
- { name: chill.timeline, context: 'person' }
chill.activity.export.count_activity:
class: Chill\ActivityBundle\Export\Export\CountActivity
arguments:
- "@doctrine.orm.entity_manager"
tags:
- { name: chill.export, alias: 'count_activity' }
chill.activity.export.reason_filter:
class: Chill\ActivityBundle\Export\Filter\ActivityReasonFilter
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: chill.export_filter, alias: 'activity_reason_filter' }
chill.activity.export.reason_aggregator:
class: Chill\ActivityBundle\Export\Aggregator\ReasonAggregator
tags:
- { name: chill.export_aggregator, alias: activity_reason }

View File

@ -0,0 +1,19 @@
services:
chill.activity.export.count_activity:
class: Chill\ActivityBundle\Export\Export\CountActivity
arguments:
- "@doctrine.orm.entity_manager"
tags:
- { name: chill.export, alias: 'count_activity' }
chill.activity.export.reason_filter:
class: Chill\ActivityBundle\Export\Filter\ActivityReasonFilter
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: chill.export_filter, alias: 'activity_reason_filter' }
chill.activity.export.reason_aggregator:
class: Chill\ActivityBundle\Export\Aggregator\ReasonAggregator
tags:
- { name: chill.export_aggregator, alias: activity_reason }