instante/tracy-login 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

instante/tracy-login

Composer 安装命令:

composer require instante/tracy-login

包简介

Allows quick login to any user account using Tracy bar panel

README 文档

README

Build Status Downloads this Month Latest stable

Installation

The best way to install Instante Tracy Login is using Composer:

$ composer require instante/tracy-login

Configuration

Add new extension to config (e.g. extensions.neon):

extensions:
    debugLogin: Instante\Tracy\Login\DI\DebugLoginExtension

Then you should enable it in your local config. Never do that on production server!

debugLogin:
    enabled: true

Optional configuration

Login bar natively works with Instante/skeleton doctrine user. Default User class is App\Model\User\User. You can change it in setup:

debugLogin:
    dao:
        entity: Your\Custom\User

Or

debugLogin:
    dao: "Instante\Tracy\Login\DoctrineUserDao(Your\Custom\User)"

You can write your own UserDao which implements IUserDao. Then you have to update setup:

debugLogin:
    dao: "Your\Custom\Dao"

Identifier

Default identifier is 'email' so method 'getEmail()' will be called. You can change it in setup:

debugLogin:
    identifier: "fullName"

and then 'getFullName()' will be called. But you can add as many methods as you want:

debugLogin:
    identifier: {"email", "fullName"}

and then both, 'getEmail()' and 'getFullName()' will be called.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固