indigophp/guardian-doctrine
Composer 安装命令:
composer require indigophp/guardian-doctrine
包简介
Doctrine integration for Guardian
关键字:
README 文档
README
Doctrine integration for Guardian.
Install
Via Composer
$ composer require indigophp/guardian-doctrine
Usage
Simply pass an EntityManagerInterface instance and an Entity class name to the Indigo\Guardian\Identifier\Doctrine class and you are good to go:
use Indigo\Guardian\Identifier\Doctrine; $identifier = new Doctrine($entityManager, 'Indigo\Guardian\Caller\User\Simple'); // optional, ['username'] by default $identifier->setIdentificationFields(['username']); // optional, 'loginToken' by default $identifier->setLoginTokenField('id');
Testing
$ phpspec run
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-30