定制 demontpx/user-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

demontpx/user-bundle

Composer 安装命令:

composer require demontpx/user-bundle

包简介

Provider users and user management to my Symfony apps

关键字:

README 文档

README

This couples the FOSUserBundle to my Symfony apps

Installation

Add the user bundle to your symfony project:

$ compose require demontpx/user-bundle

Configuration

User roles can be added in your config/packages/demontpx_user.yaml:

demontpx_user:
    roles:
        ROLE_ADMIN: Administrator
        ROLE_GROUP_MANAGER: Group manager
        ROLE_SUPER: Super user

ORM Data fixtures for testing can be added in config/packages/test/demontpx_user.yml:

demontpx_user:
    fixtures:
        user: ~
        admin: { roles: [ROLE_ADMIN] }
        super_user: { roles: [ROLE_ADMIN, ROLE_SUPER] }

Users will get the same password as the user name, and you will be able to use the UserWebTestCase class from the util bundle for your user-aware functional tests. You will also need to add this to your config/packages/test/security.yml to enable this:

security:
    firewalls:
        main: # Replace this with your firewall name
            http_basic: ~

Additional javascript and stylesheets

A SCSS file is located at assets/user-bundle.scss which could be imported.

Some elements have the select2 class which could be enhanced by enabling select2 on them.

统计信息

  • 总下载量: 458
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固