From b9d7fb6be96bde2225c51e3cdab23f5fa6c2ca10 Mon Sep 17 00:00:00 2001 From: hacfi Date: Mon, 17 Mar 2025 21:15:12 +0100 Subject: [PATCH] Add recipe for stogon/unleash-bundle (#1761) --- .../0.4/config/packages/unleash.yaml | 27 +++++++++++++++++++ stogon/unleash-bundle/0.4/manifest.json | 8 ++++++ 2 files changed, 35 insertions(+) create mode 100644 stogon/unleash-bundle/0.4/config/packages/unleash.yaml create mode 100644 stogon/unleash-bundle/0.4/manifest.json diff --git a/stogon/unleash-bundle/0.4/config/packages/unleash.yaml b/stogon/unleash-bundle/0.4/config/packages/unleash.yaml new file mode 100644 index 00000000..b0762bfd --- /dev/null +++ b/stogon/unleash-bundle/0.4/config/packages/unleash.yaml @@ -0,0 +1,27 @@ +unleash: + # The full URL to your unleash-server instance (must end with a slash). + # Example with the "feature_flags" feature from Gitlab.com : https://gitlab.com/api/v4/feature_flags/unleash// + api_url: 'https://gitlab.com/api/v4/feature_flags/unleash//' + + # Authorization key if needed + # auth_token: '' + + # Instance ID of your unleash application. + # Example : VPQgqIdAxQyXY96d6oWj + instance_id: '' + + # Unleash application name. + # For Gitlab feature flags, it can be set to the environment name. + # default: '%kernel.environment%' + environment: '%kernel.environment%' + + cache: + # Enable caching of features fetched from Unleash server. + # default: true + enabled: true + # Service ID to use for caching (must be a cache pool) + # default: '%unleach.cache.service%' (which resolve to '@cache.unleash.strategies' service) + service: '@cache.app' + # The period of time from the present after which the item MUST be considered expired in the cache in seconds + # default: 15 + ttl: 15 diff --git a/stogon/unleash-bundle/0.4/manifest.json b/stogon/unleash-bundle/0.4/manifest.json new file mode 100644 index 00000000..cb7eccff --- /dev/null +++ b/stogon/unleash-bundle/0.4/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Stogon\\UnleashBundle\\UnleashBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}