xm / security-bundle
扩展了 FOSUserBundle 的自定义功能并添加了一些功能。
0.2.20
2021-03-18 21:54 UTC
Requires
- php: ^5.6 || ^7.0
- doctrine/orm: ^2.5
- friendsofsymfony/user-bundle: ^2.0
- symfony/form: ^3.0
- symfony/framework-bundle: ^3.0
- xm/mail-manager-bundle: ^0.2 || ^0.3
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(), ); // ... } }