From c27b03c007af5fbc26b331037b675d5c9c2881ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20M=C3=B4stka?= Date: Tue, 1 Sep 2026 19:28:33 +0200 Subject: [PATCH] Add tito10047/iconcaptcha-bundle 0.1 (#2036) --- .../0.1/config/packages/icon_captcha.yaml | 9 +++++ .../0.1/config/routes/icon_captcha.yaml | 3 ++ .../iconcaptcha-bundle/0.1/manifest.json | 36 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 tito10047/iconcaptcha-bundle/0.1/config/packages/icon_captcha.yaml create mode 100644 tito10047/iconcaptcha-bundle/0.1/config/routes/icon_captcha.yaml create mode 100644 tito10047/iconcaptcha-bundle/0.1/manifest.json diff --git a/tito10047/iconcaptcha-bundle/0.1/config/packages/icon_captcha.yaml b/tito10047/iconcaptcha-bundle/0.1/config/packages/icon_captcha.yaml new file mode 100644 index 00000000..1eb25ff6 --- /dev/null +++ b/tito10047/iconcaptcha-bundle/0.1/config/packages/icon_captcha.yaml @@ -0,0 +1,9 @@ +icon_captcha: + theme: light + +# A test cannot solve a challenge, so the protected form has to stay submittable. +# "enable: false" switches both ends at once: nothing is rendered and the +# constraint always passes. +when@test: + icon_captcha: + enable: false diff --git a/tito10047/iconcaptcha-bundle/0.1/config/routes/icon_captcha.yaml b/tito10047/iconcaptcha-bundle/0.1/config/routes/icon_captcha.yaml new file mode 100644 index 00000000..bf08dca7 --- /dev/null +++ b/tito10047/iconcaptcha-bundle/0.1/config/routes/icon_captcha.yaml @@ -0,0 +1,3 @@ +icon_captcha: + resource: '@IconcaptchaBundle/config/routes.php' + type: php diff --git a/tito10047/iconcaptcha-bundle/0.1/manifest.json b/tito10047/iconcaptcha-bundle/0.1/manifest.json new file mode 100644 index 00000000..a9bd5110 --- /dev/null +++ b/tito10047/iconcaptcha-bundle/0.1/manifest.json @@ -0,0 +1,36 @@ +{ + "bundles": { + "Tito10047\\IconcaptchaBundle\\IconcaptchaBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "assets/app.js", + "content": [ + "import '@fabianwennink/iconcaptcha/css/iconcaptcha.min.css';" + ], + "position": "top", + "requires": "symfony/asset-mapper", + "warn_if_missing": true + } + ], + "post-install-output": [ + " ", + " What's next? ", + " ", + "", + " * The captcha needs a session: make sure framework.session is enabled.", + "", + " * Add the widget to a form:", + " $builder->add('captcha', Tito10047\\IconcaptchaBundle\\Type\\IconCaptchaType::class);", + "", + " * Serve the client assets. With AssetMapper they were just declared in", + " importmap.php; without it, run php bin/console iconcaptcha:install-assets", + " once and after every update of fabianwennink/iconcaptcha.", + "", + " * Read the documentation at https://github.com/tito10047/IconCaptchaBundle", + "" + ] +}