-
Notifications
You must be signed in to change notification settings - Fork 0
/
loco_translate.services.yml
45 lines (37 loc) · 1.26 KB
/
loco_translate.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
services:
loco_translate.utility:
class: Drupal\loco_translate\Utility
arguments:
- '@language_manager'
- '@state'
loco_translate.api_client.read_only:
class: \Loco\Http\ApiClient
factory: '\Drupal\loco_translate\Loco\ApiClientFactory::withReadOnlyAccess'
arguments: ['@config.factory']
loco_translate.api_client.full_access:
class: \Loco\Http\ApiClient
factory: '\Drupal\loco_translate\Loco\ApiClientFactory::withFullAccess'
arguments: ['@config.factory']
loco_translate.translations.import:
class: \Drupal\loco_translate\TranslationsImport
arguments:
- '@loco_translate.utility'
- '@module_handler'
- '@file_system'
loco_translate.loco_api.push:
class: \Drupal\loco_translate\Loco\Push
arguments:
- '@loco_translate.api_client.full_access'
loco_translate.loco_api.pull:
class: \Drupal\loco_translate\Loco\Pull
arguments:
- '@loco_translate.api_client.read_only'
- '@loco_translate.utility'
loco_translate.twig.loco_export:
class: Drupal\loco_translate\TwigExtension\LocoExport
arguments: ['@config.factory']
tags:
- { name: twig.extension }
logger.channel.loco_translate:
parent: logger.channel_base
arguments: ['loco_translate']