glavweb / captcha-bundle

该包最新版本(v0.2.0)没有提供许可证信息。

Symfony GlavwebCaptchaBundle

v0.2.0 2019-06-06 16:38 UTC

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"