xm/security-bundle

扩展了 FOSUserBundle 的自定义功能并添加了一些功能。

安装: 375

依赖项: 1

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

公开问题: 0

类型:symfony-bundle

0.2.20 2021-03-18 21:54 UTC

This package is auto-updated.

Last update: 2024-09-19 05:23:35 UTC


README

扩展了 FOSUserBundle 的自定义功能并添加了一些功能。

安装

步骤 1:下载 Bundle

此包不在 Packagist 上,因此需要在 composer.json 中手动添加仓库。

打开命令行,进入您的项目目录,并执行以下命令以下载此 Bundle 的最新稳定版本

$ php composer.phar require xm/security-bundle

此命令需要 Composer

步骤 2:启用 Bundle

然后,通过将其添加到项目中 app/AppKernel.php 文件中注册的 Bundle 列表来启用该 Bundle

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new XM\SecurityBundle\XMSecurityBundle(),
        );

        // ...
    }
}