定制 unknown/user-light 二次开发

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

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

unknown/user-light

最新稳定版本:1.0.4

Composer 安装命令:

composer require unknown/user-light

包简介

Light user handling bundle for Symfony2

README 文档

README

This bundle provides you with:

  • reason to move on from php 5.3
  • code base of 1k+ lines including 25+ phpspec examples
  • symfony2 security configuration
  • symfony2 security configuration for partially protected sites
  • symfony2 firewall
  • User entity for Doctrine ORM
  • login controller
  • login template
  • login event logger

Issues and feature requests are tracked in the Github issue tracker https://github.com/unknown-opensource/user-light/issues

Installation

  1. To install this bundle with Composer, just add the following to your composer.json file:

    require: { ... "unknown/user-light": "1.0.4" }

  2. Then register the bundle in AppKernel::registerBundles()

    $bundles = array( ... new Unknown\Bundle\ReportBundle\UnknownUserLightBundle(), );

  3. Include security configuration.

    imports: - { resource: @UnknownUserLightBundle/Resources/config/security.yml }

Custom User Entity

To assign custom user entity for firewall use bundle configuration.

Partial bundle configuration:

unknown_user_light:
    user_entity_class: Acme\CustomBundle\Entity\User

Custom Login Event Logging

To store login events in database supply record class in bundle configuration. Supplied class should implement Unknown\Bundle\UserLightBundle\Entity\LoginRecordInterface interface.

Partial bundle configuration:

unknown_user_light:
    login_record_class: Acme\CustomBundle\Entity\LoginRecord

Custom Login Theme

Default bundle configuration looks for ::login.html.twig template. However, there is already provided template which can be used by configuring bundle with following:

unknown_user_light:
    login_template: UserLightBundle::login.html.twig

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固