Class
Utility class for assessing the authentication state or identity of the current actor
public function isAuthenticatedUser(): boolWhether the current actor is authenticated as a User
Returns User\|null
public function isAuthenticatedAdmin(): boolWhether the current actor is authenticated as an Admin
Returns Admin\|null
public function isMasqueradingAdmin(): boolWhether the current actor is authenticated as an Admin but is also acting on behalf of the client, having performed a "Login as Owner".
Returns bool
public function user(): ?UserGet the currently authenticated user.
Returns User\|null
public function admin(): ?AdminGet the currently authenticated admin.
Returns Admin\|null
public function client(): ?ClientGet the currently active client for management.
Returns Client\|null