dev-master
9999999-dev https://indigophp.comDoctrine integration for Guardian
MIT
The Requires
The Development Requires
by MĂĄrk SĂĄgi-KazĂĄr
doctrine guardian
Doctrine integration for Guardian
Doctrine integration for Guardian., (*2)
Via Composer, (*3)
``` bash $ composer require indigophp/guardian-doctrine, (*4)
## Usage Simply pass an `EntityManagerInterface` instance and an Entity class name to the `Indigo\Guardian\Identifier\Doctrine` class and you are good to go: ``` php 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');
bash
$ phpspec run
, (*5)
Please see CONTRIBUTING for details., (*6)
The MIT License (MIT). Please see License File for more information., (*7)
Doctrine integration for Guardian
MIT
doctrine guardian