IdentityInterface
- Full name:
\PhalconKit\Mvc\Model\Interfaces\IdentityInterface
Methods
getIdentityService
public getIdentityService(): \PhalconKit\Identity\Manager
isLoggedIn
public isLoggedIn(bool $as = false): bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool |
isLoggedInAs
public isLoggedInAs(): bool
getCurrentUser
public getCurrentUser(bool $as = false): ?\PhalconKit\Models\Interfaces\UserInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool |
getCurrentUserAs
public getCurrentUserAs(): ?\PhalconKit\Models\Interfaces\UserInterface
getCurrentUserId
public getCurrentUserId(bool $as = false): ?int
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool |
getCurrentUserIdCallback
public getCurrentUserIdCallback(bool $as = false): \Closure
Parameters:
| Parameter | Type | Description |
|---|---|---|
$as | bool |