Instante Tracy Login
, (*1)
Installation
The best way to install Instante Tracy Login is using Composer:, (*2)
$ composer require instante/tracy-login
Configuration
Add new extension to config (_e.g. extensions.neon_):, (*3)
extensions:
debugLogin: Instante\Tracy\Login\DI\DebugLoginExtension
Then you should enable it in your local config. Never do that on production server!, (*4)
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:, (*5)
debugLogin:
dao:
entity: Your\Custom\User
Or, (*6)
debugLogin:
dao: "Instante\Tracy\Login\DoctrineUserDao(Your\Custom\User)"
You can write your own UserDao which implements IUserDao. Then you have to update setup:, (*7)
debugLogin:
dao: "Your\Custom\Dao"
Identifier
Default identifier is 'email' so method 'getEmail()' will be called. You can change it in setup:, (*8)
debugLogin:
identifier: "fullName"
and then 'getFullName()' will be called.
But you can add as many methods as you want:, (*9)
debugLogin:
identifier: {"email", "fullName"}
and then both, 'getEmail()' and 'getFullName()' will be called., (*10)