Skip to content

Commit

Permalink
Add recipe for datana-gmbh/fake-api-client (#1545)
Browse files Browse the repository at this point in the history
* Add recipe for `datana-gmbh/fake-api-client`

* -
  • Loading branch information
OskarStark authored Oct 5, 2023
1 parent 970ed1e commit 2ebd969
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
_defaults:
autowire: true

Datana\FakeApi\Api\FakeApiClient:
arguments:
- '%env(FAKE_API_BASE_URI)%'
- '%env(FAKE_API_USERNAME)%'
- '%env(FAKE_API_PASSWORD)%'
- '%env(bool:FAKE_API_DISABLE_CACHE)%'

Datana\FakeApi\Api\Formulario\DateneingabenApi: null
Datana\FakeApi\Api\Formulario\StatisticsApi: null
when@dev:
services:
Datana\Formulario\Api\DateneingabenApiInterface: '@Datana\FakeApi\Api\Formulario\DateneingabenApi'
Datana\Formulario\Api\StatisticsApiInterface: '@Datana\FakeApi\Api\Formulario\StatisticsApi'

when@test:
services:
Datana\Formulario\Api\DateneingabenApiInterface: '@Datana\FakeApi\Api\Formulario\DateneingabenApi'
Datana\Formulario\Api\StatisticsApiInterface: '@Datana\FakeApi\Api\Formulario\StatisticsApi'
11 changes: 11 additions & 0 deletions datana-gmbh/fake-api-client/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"FAKE_API_BASE_URI": "",
"FAKE_API_USERNAME": "",
"FAKE_API_PASSWORD": "",
"FAKE_API_DISABLE_CACHE": "false"
}
}

0 comments on commit 2ebd969

Please sign in to comment.