Authentication
class Authentication
Authentication.
Constants
LOGIN_BANNED |
Status code for banned users. |
LOGIN_ACTIVATING |
Status code for users who need to activate their account. |
LOGIN_INCORRECT |
Status code for users who fail to provide the correct credentials. |
LOGIN_LOCKED |
Status code for users that are temporarily locked. |
Properties
protected string | $defaultAdapter | Default adapter name. | |
protected array | $adapters | Adapters. | |
protected array | $adapterFactories | Adapter factories. |
Methods
registerAdapter(string|AdapterInterface $adapter, Closure $factory = null, bool $makeDefault = false)
Registers a adapter.
useAsDefaultAdapter(string $name)
Sets the defaut adapter name.
resolveAdapter(string $name)
Resolves a adapter instance.
adapter(string $name = null)
Returns a adapter instance.
mixed
__call(string $method, array $arguments)
Magic shortcut to the default adapter.
string
getName()
No description
void
setUserRepository(UserRepositoryInterface $userRepository)
No description
getUserRepository()
No description
void
setUser(UserEntityInterface $user)
No description
UserEntityInterface|null
getUser()
No description
bool
isGuest()
No description
bool
isLoggedIn()
No description
Details
at line 83
__construct(string|AdapterInterface $adapter, Closure $factory = null)
Constructor.
at line 95
protected
registerAdapter(string|AdapterInterface $adapter, Closure $factory = null, bool $makeDefault = false)
Registers a adapter.
at line 119
Authentication
extend(string|AdapterInterface $adapter, Closure $factory = null)
Registers a new adapter.
at line 132
Authentication
useAsDefaultAdapter(string $name)
Sets the defaut adapter name.
at line 145
protected AdapterInterface
resolveAdapter(string $name)
Resolves a adapter instance.
at line 158
AdapterInterface
adapter(string $name = null)
Returns a adapter instance.
at line 172
mixed
__call(string $method, array $arguments)
Magic shortcut to the default adapter.