lracicot/fosusermanagerbundle

为 FOSUserBundle 提供的 CRUD 用户管理器

安装: 7

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2017-05-05 06:25 UTC

This package is not auto-updated.

Last update: 2024-09-15 02:37:51 UTC


README

此包是针对 Friends Of Symfony User Bundle 的用户管理后台。它允许对用户执行基本的 CRUD 操作。

安装

  1. 安装 FOSUserBundle
  2. 使用 composer 下载 lracicotFOSUserManagerBundle
  3. 启用 Bundle
  4. 导入 lracicotFOSUserManagerBundle 路由文件

步骤 1: 安装 FOSUserBundle

遵循 FOSUserBundle 文档 中的说明。

步骤 2: 使用 composer 下载 lracicotFOSUserManagerBundle

使用 composer 需求此 Bundle

$ composer require "lracicot/fosusermanagerbundle" "v0.1-alpha"

步骤 3: 注册 Bundle

在 kernel 中启用 Bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new lracicot\FOSUserManagerBundle\lracicotFOSUserManagerBundle(),
        // ...
    );
}

步骤 4: 导入 lracicotFOSUserManagerBundle 路由文件

# app/config/routing.yml
lracicot_fos_user_manager:
    resource: "@lracicotFOSUserManagerBundle/Resources/config/routing.xml"
    prefix:   /admin/user/

您可以更改前缀以匹配您的应用程序配置。

贡献

任何代码审查、建议或 pull request 都将受到欢迎。请确保您的更改有测试。