PHP Interface Pantheon\Terminus\Session\SessionAwareInterface

Mostra file Open project: pantheon-systems/terminus

Public Methods

Method Description
getUser ( ) : User Get the user model of the logged in user.
session ( ) : Session Get the current user's session object.
setSession ( Session $session ) * Inject a session object.

Method Details

getUser() public method

Get the user model of the logged in user.
public getUser ( ) : User
return Pantheon\Terminus\Models\User

session() public method

Get the current user's session object.
public session ( ) : Session
return Session

setSession() public method

* Inject a session object.
public setSession ( Session $session )
$session Session