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", + "" + ] +}