App::setUser
Usage
void App::setUser(ArmorUserInterface $user)Description
Set the user for the request.Parameters
Parameter | Required | Type | Description |
---|---|---|---|
$user | Yes | ArmorUserInterface | Must be an object that implements the [ArmorUserInterface](https://github.com/apexpl/armor/blob/master/docs/armoruser.md) omterface. |
Examples
Set User
$user = new User(); // Retrieve user instance
$app->setUser($user);