PHP Interface Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode Description
all ( ) : array Returns all parameters.
clear ( ) Clear all parameter.
get ( string $name ) : mixed Get parameter with given name.
getId ( ) : string Returns unique id for session.
getQuery ( ) : Guzzle\Http\QueryString Returns query of the upgrade request.
getRequest ( ) : Guzzle\Http\Message\RequestInterface Returns upgrade request.
getSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface Returns session of the upgrade request.
getToken ( string $firewall ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null Returns token for given firewall.
getUser ( string $firewall ) : Sulu\Component\Security\Authentication\UserInterface | null Returns user for given firewall.
has ( string $name ) : boolean Get parameter with given name.
isValid ( ) : boolean Indicates that the context is valid.
set ( string $name, mixed $value ) Set parameter with given name.

Method Details

all() public méthode

Returns all parameters.
public all ( ) : array
Résultat array

clear() public méthode

Clear all parameter.
public clear ( )

get() public méthode

Get parameter with given name.
public get ( string $name ) : mixed
$name string
Résultat mixed

getId() public méthode

Returns unique id for session.
public getId ( ) : string
Résultat string

getQuery() public méthode

Returns query of the upgrade request.
public getQuery ( ) : Guzzle\Http\QueryString
Résultat Guzzle\Http\QueryString

getRequest() public méthode

Returns upgrade request.
public getRequest ( ) : Guzzle\Http\Message\RequestInterface
Résultat Guzzle\Http\Message\RequestInterface

getSession() public méthode

Returns session of the upgrade request.
public getSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface
Résultat Symfony\Component\HttpFoundation\Session\SessionInterface

getToken() public méthode

Returns token for given firewall.
public getToken ( string $firewall ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null
$firewall string
Résultat Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null

getUser() public méthode

Returns user for given firewall.
public getUser ( string $firewall ) : Sulu\Component\Security\Authentication\UserInterface | null
$firewall string
Résultat Sulu\Component\Security\Authentication\UserInterface | null

has() public méthode

Get parameter with given name.
public has ( string $name ) : boolean
$name string
Résultat boolean

isValid() public méthode

Indicates that the context is valid.
public isValid ( ) : boolean
Résultat boolean

set() public méthode

Set parameter with given name.
public set ( string $name, mixed $value )
$name string
$value mixed