-
Notifications
You must be signed in to change notification settings - Fork 4
/
services.yaml
139 lines (112 loc) · 5.03 KB
/
services.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
navcoin.network: '%env(NETWORK)%'
explorer.api.url: '%env(BACKEND_URI)%'
navcoin.base_uri: '%env(BACKEND_URI)%'
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
public: false # Allows optimizing the container by removing unused services; this also means
# fetching services directly from the container via $container->get() won't work.
# The best practice is to be explicit about your dependencies anyway.
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/*'
exclude: '../src/{Entity,Migrations,Tests,Kernel.php}'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../src/Controller'
tags: ['controller.service_arguments']
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
# CoinGecko
App\CoinGecko\Api:
arguments: [ '@logger' ]
# Navcoin Clients
App\Navcoin\Client\NavcoinClient:
arguments: ['%navcoin.base_uri%', '%navcoin.network%', '@logger']
# Navcoin APIs
App\Navcoin\Address\Api\AddressApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Address\Mapper\AddressMapper'
App\Navcoin\Address\Api\HistoryApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Address\Mapper\HistoryMapper'
App\Navcoin\Address\Api\SummaryApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Address\Mapper\SummaryMapper'
App\Navcoin\Address\Api\AddressGroupApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Address\Mapper\AddressGroupMapper'
App\Navcoin\Address\Api\StakingApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Address\Mapper\StakingMapper'
App\Navcoin\Block\Api\BlockApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Block\Mapper\BlockMapper'
App\Navcoin\Block\Api\BlockGroupApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Block\Mapper\BlockGroupMapper'
App\Navcoin\Block\Api\TransactionApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Block\Mapper\TransactionMapper'
App\Navcoin\Distribution\Api\DistributionApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Distribution\Mapper\DistributionMapper'
App\Navcoin\Search\Api\SearchApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
App\Navcoin\SoftFork\Api\SoftForkApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\SoftFork\Mapper\SoftForkMapper'
App\Navcoin\CommunityFund\Api\ProposalApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\CommunityFund\Mapper\ProposalMapper'
App\Navcoin\CommunityFund\Api\PaymentRequestApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\CommunityFund\Mapper\PaymentRequestMapper'
App\Navcoin\Dao\Api\ConsensusApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Dao\Mapper\ConsensusParameterMapper'
App\Navcoin\Dao\Api\ConsultationApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\Dao\Mapper\ConsultationMapper'
App\Navcoin\Dao\Api\AnswerVoteApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\CommunityFund\Mapper\VoterMapper'
App\Navcoin\CommunityFund\Api\VotersApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\CommunityFund\Mapper\VoterMapper'
App\Navcoin\CommunityFund\Api\TrendApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
- '@App\Navcoin\CommunityFund\Mapper\TrendMapper'
App\Navcoin\Staking\Api\StakingApi:
arguments:
- '@App\Navcoin\Client\NavcoinClient'
App\Navcoin\Network\Service\NetworkService:
arguments:
- '%navcoin.network%'
# Filters
App\Navcoin\Address\Type\Filter\AddressTransactionTypeFilter: