From ed9510620eadf3b1d321e7cffd2772bff5126c6a Mon Sep 17 00:00:00 2001 From: Jozef Mostka Date: Sat, 19 Apr 2025 19:20:21 +0200 Subject: [PATCH] altcha bundle (#1782) * altcha bundle * renamed route to huluti_altcha --- .../1.0/config/packages/huluti_altcha.yaml | 7 +++++++ .../1.0/config/routes/huluti_altcha.yaml | 2 ++ huluti/altcha-bundle/1.0/manifest.json | 11 +++++++++++ 3 files changed, 20 insertions(+) create mode 100644 huluti/altcha-bundle/1.0/config/packages/huluti_altcha.yaml create mode 100644 huluti/altcha-bundle/1.0/config/routes/huluti_altcha.yaml create mode 100644 huluti/altcha-bundle/1.0/manifest.json diff --git a/huluti/altcha-bundle/1.0/config/packages/huluti_altcha.yaml b/huluti/altcha-bundle/1.0/config/packages/huluti_altcha.yaml new file mode 100644 index 00000000..7eb05fd5 --- /dev/null +++ b/huluti/altcha-bundle/1.0/config/packages/huluti_altcha.yaml @@ -0,0 +1,7 @@ +huluti_altcha: + enable: true + hmacKey: '%env(ALTCHA_SECRET)%' + +when@test: + huluti_altcha: + enable: false diff --git a/huluti/altcha-bundle/1.0/config/routes/huluti_altcha.yaml b/huluti/altcha-bundle/1.0/config/routes/huluti_altcha.yaml new file mode 100644 index 00000000..19d5a00f --- /dev/null +++ b/huluti/altcha-bundle/1.0/config/routes/huluti_altcha.yaml @@ -0,0 +1,2 @@ +huluti_altcha: + resource: '@HulutiAltchaBundle/config/routes.yml' diff --git a/huluti/altcha-bundle/1.0/manifest.json b/huluti/altcha-bundle/1.0/manifest.json new file mode 100644 index 00000000..493ec33d --- /dev/null +++ b/huluti/altcha-bundle/1.0/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Huluti\\AltchaBundle\\HulutiAltchaBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "ALTCHA_SECRET": "%generate(secret)%" + } +}