mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Add tg-bot-api/bot-api-base
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
|
||||
TgBotApi\BotApiBase\ApiClient:
|
||||
arguments:
|
||||
$requestFactory: '@Psr\Http\Message\RequestFactoryInterface'
|
||||
$streamFactory: '@Psr\Http\Message\StreamFactoryInterface'
|
||||
$client: '@Psr\Http\Client\ClientInterface'
|
||||
|
||||
TgBotApi\BotApiBase\BotApiNormalizer: null
|
||||
|
||||
TgBotApi\BotApiBase\ApiClientInterface: '@TgBotApi\BotApiBase\ApiClient'
|
||||
TgBotApi\BotApiBase\NormalizerInterface: '@TgBotApi\BotApiBase\BotApiNormalizer'
|
||||
|
||||
TgBotApi\BotApiBase\BotApi:
|
||||
arguments:
|
||||
$botKey: '%env(resolve:TG_BOT_API_KEY)%'
|
||||
$apiClient: '@TgBotApi\BotApiBase\ApiClientInterface'
|
||||
$normalizer: '@TgBotApi\BotApiBase\NormalizerInterface'
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"TG_BOT_API_KEY": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user