Add tg-bot-api/bot-api-base

This commit is contained in:
Big Shark
2019-12-15 03:53:13 +03:00
parent 36a451fc48
commit bf4035c891
2 changed files with 26 additions and 0 deletions
@@ -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": ""
}
}