diff --git a/datana-gmbh/fake-api-client/1.0/config/packages/datana_fake_api.yaml b/datana-gmbh/fake-api-client/1.0/config/packages/datana_fake_api.yaml new file mode 100644 index 000000000..b7436991e --- /dev/null +++ b/datana-gmbh/fake-api-client/1.0/config/packages/datana_fake_api.yaml @@ -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' diff --git a/datana-gmbh/fake-api-client/1.0/manifest.json b/datana-gmbh/fake-api-client/1.0/manifest.json new file mode 100644 index 000000000..3b77b1c76 --- /dev/null +++ b/datana-gmbh/fake-api-client/1.0/manifest.json @@ -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" + } +}