-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathopeny_daxko_gxp_syncer.services.yml
95 lines (95 loc) · 3.34 KB
/
openy_daxko_gxp_syncer.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
openy_daxko_gxp_syncer.cache:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin }
factory: cache_factory:get
arguments:
- 'openy_daxko_gxp_syncer'
config.openy_daxko_gxp_syncer.immutable:
class: \Drupal\Core\Config\ImmutableConfig
factory: config.factory:get
arguments:
- 'openy_daxko_gxp_syncer.settings'
logger.channel.openy_daxko_gxp_syncer:
parent: logger.channel_base
arguments: ['openy_daxko_gxp_syncer']
openy_daxko_gxp_syncer.client:
class: Drupal\openy_daxko_gxp_syncer\DaxkoGxpClient
arguments:
- '@http_client'
- '@config.factory'
- '@openy_daxko_gxp_syncer.cache'
- '@logger.channel.openy_daxko_gxp_syncer'
openy_daxko_gxp_syncer.fetch:
class: Drupal\openy_daxko_gxp_syncer\syncer\Fetcher
arguments:
- '@openy_daxko_gxp_syncer.client'
- '@openy_daxko_gxp_syncer.wrapper'
openy_daxko_gxp_syncer.wrapper:
class: Drupal\openy_daxko_gxp_syncer\syncer\Wrapper
arguments:
- '@config.openy_daxko_gxp_syncer.immutable'
- '@openy_mappings.location_repository'
- '@logger.channel.openy_daxko_gxp_syncer'
openy_daxko_gxp_syncer.session_manager:
class: Drupal\openy_daxko_gxp_syncer\syncer\SessionManager
arguments:
- '@openy_daxko_gxp_syncer.wrapper'
- '@entity_type.manager'
- '@openy_daxko_gxp_syncer.mapping'
- '@config.factory'
openy_daxko_gxp_syncer.mapping:
class: Drupal\openy_daxko_gxp_syncer\DaxkoGroupexMappingRepository
arguments:
- '@entity_type.manager'
- '@logger.channel.openy_daxko_gxp_syncer'
openy_daxko_gxp_syncer.cleaner:
class: Drupal\openy_daxko_gxp_syncer\syncer\Cleaner
arguments:
- '@openy_daxko_gxp_syncer.wrapper'
- '@openy_daxko_gxp_syncer.session_manager'
openy_daxko_gxp_syncer.qmanager:
class: Drupal\openy_daxko_gxp_syncer\syncer\QueueManager
arguments:
- '@openy_daxko_gxp_syncer.wrapper'
- '@openy_daxko_gxp_syncer.session_manager'
- '@queue'
openy_daxko_gxp_syncer.availability:
class: Drupal\openy_daxko_gxp_syncer\syncer\Availability
arguments:
- '@openy_daxko_gxp_syncer.client'
- '@openy_daxko_gxp_syncer.wrapper'
- '@openy_daxko_gxp_syncer.session_manager'
openy_daxko_gxp_syncer.qsyncer:
class: Drupal\ymca_sync\Syncer
arguments: []
calls:
- [addStep, ['@openy_daxko_gxp_syncer.fetch', 'fetch']]
- [addStep, ['@openy_daxko_gxp_syncer.qmanager', 'manage']]
tags:
- { name: syncer }
openy_daxko_gxp_syncer.syncer:
class: Drupal\ymca_sync\Syncer
arguments: []
calls:
- [addStep, ['@openy_daxko_gxp_syncer.fetch', 'fetch']]
- [addStep, ['@openy_daxko_gxp_syncer.cleaner', 'clean']]
- [addStep, ['@openy_daxko_gxp_syncer.session_manager', 'createSessions']]
- [addStep, ['@openy_daxko_gxp_syncer.session_manager', 'updateSessions']]
tags:
- { name: syncer }
openy_daxko_gxp_syncer.cleaner_all:
class: Drupal\ymca_sync\Syncer
arguments: []
calls:
- [addStep, ['@openy_daxko_gxp_syncer.mapping', 'deleteMapping']]
tags:
- { name: syncer }
openy_daxko_gxp_syncer.availability_sync:
class: Drupal\ymca_sync\Syncer
arguments: []
calls:
- [addStep, ['@openy_daxko_gxp_syncer.availability', 'updateAvailability']]
tags:
- { name: syncer }