AbstractProtectedRoutable
in package
implements
RoutableInterface
Represents a target object for a request route that requires authorization.
Objects that extend this class will have access to metadata associated with the authenticated user. Route target objects that require authorization should extend this class.
Table of Contents
Interfaces
- RoutableInterface
Properties
Methods
- withUser() : self
- Create a `User` from the given user object and assign it to the user property.
Properties
$user
Contains credentials for an authenticated user
public
User
$user
Methods
withUser()
Create a `User` from the given user object and assign it to the user property.
public
withUser(object $user) : self
Parameters
- $user : object