Creating default Point API HTTP client. Defining default bind by name variables in services.yaml.
This commit is contained in:
parent
d68ae868ae
commit
8c59f656f6
|
@ -10,6 +10,14 @@ services:
|
||||||
_defaults:
|
_defaults:
|
||||||
autowire: true # Automatically injects dependencies in your services.
|
autowire: true # Automatically injects dependencies in your services.
|
||||||
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
||||||
|
bind:
|
||||||
|
# TODO: fix retrieval
|
||||||
|
# Telegram Bot API
|
||||||
|
$telegramToken: ''
|
||||||
|
# Point API
|
||||||
|
$pointApiDelay: ''
|
||||||
|
$pointAppUserId: ''
|
||||||
|
$pointApiClient: '@app.point.http_client'
|
||||||
|
|
||||||
# makes classes in src/ available to be used as services
|
# makes classes in src/ available to be used as services
|
||||||
# this creates a service per class whose id is the fully-qualified class name
|
# this creates a service per class whose id is the fully-qualified class name
|
||||||
|
@ -20,5 +28,10 @@ services:
|
||||||
- '../src/Entity/'
|
- '../src/Entity/'
|
||||||
- '../src/Kernel.php'
|
- '../src/Kernel.php'
|
||||||
|
|
||||||
# add more service definitions when explicit configuration is needed
|
# HTTP client for Point API
|
||||||
# please note that last definitions always *replace* previous ones
|
Symfony\Component\HttpClient\HttpClient:
|
||||||
|
alias: 'app.point.http_client'
|
||||||
|
factory: [null, 'create']
|
||||||
|
arguments:
|
||||||
|
base_uri: '%point_base_url%'
|
||||||
|
timeout: 5.0
|
||||||
|
|
Loading…
Reference in a new issue