glavweb / captcha-bundle
该包最新版本(v0.2.0)没有提供许可证信息。
Symfony GlavwebCaptchaBundle
v0.2.0
2019-06-06 16:38 UTC
Requires
- php: >=7.1
- doctrine/doctrine-bundle: ^1.8
- doctrine/orm: ^2.5
- gregwar/captcha: ^1.1
- symfony/form: ^3.4|^4.0
- symfony/framework-bundle: ^3.4|^4.0
This package is auto-updated.
Last update: 2024-09-07 04:39:26 UTC
README
使用composer获取bundle
从Symfony项目的根目录终端运行此命令以添加GlavwebCaptchaBundle
php composer.phar require glavweb/captcha-bundle
启用bundle
要开始使用此bundle,请在应用程序的kernel类中注册bundle
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Glavweb\CaptchaBundle\GlavwebCaptchaBundle(), // ... ); }
配置bundle
添加配置
# app/config/config.yml glavweb_captcha: ~
添加路由
# app/config/routing.yml glavweb_captcha_routing: resource: "@GlavwebCaptchaBundle/Resources/config/routing.yml"