UserProvider<T>
Retrieves the currently authenticated User.
Instance Methods
| Returns | Signature and Description |
|---|---|
User<T> | getUser()Gets the current authenticated User, loaded from the Principal |
Method Details
getUser
abstract public function
getUser()Gets the current authenticated User, loaded from the Principal
| Type | Description |
|---|---|
User<T> | The current authenticated user |
| Type | Conditions |
|---|---|
UnexpectedValueException | if the current principal is anonymous |
Exception | If a database problem occurs |