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

$user  : User
Contains credentials for an authenticated user

Methods

withUser()  : self
Create a `User` from the given user object and assign it to the user property.

Properties

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
Return values
self

Search results