electivetechnology/security-bundle

Elective Security Bundle

2.1.0 2020-10-21 09:42 UTC

README

Build Status

提供了一组用于处理认证/授权过程的实用类。该项目与以下Symfony版本兼容

  • 3.x
  • 4.x
  • 5.x

需求

  • PHP 7.1及以上

安装

确保Composer已全局安装,具体请参阅Composer文档中的安装章节

使用Symfony Flex的应用程序

打开命令行,进入项目目录,执行以下命令

$ composer require electivetechnology/security-bundle

不使用Symfony Flex的应用程序

步骤1:下载Bundle

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

$ composer require electivetechnology/security-bundle

步骤2:启用Bundle

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

// config/bundles.php

return [
    // ...
    Elective\SecurityBundle\ElectiveSecurityBundle::class => ['all' => true],
];