PHP Интерфейс Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

all() публичный Метод

Returns all parameters.
public all ( ) : array
Результат array

clear() публичный Метод

Clear all parameter.
public clear ( )

get() публичный Метод

Get parameter with given name.
public get ( string $name ) : mixed
$name string
Результат mixed

getId() публичный Метод

Returns unique id for session.
public getId ( ) : string
Результат string

getQuery() публичный Метод

Returns query of the upgrade request.
public getQuery ( ) : Guzzle\Http\QueryString
Результат Guzzle\Http\QueryString

getRequest() публичный Метод

Returns upgrade request.
public getRequest ( ) : Guzzle\Http\Message\RequestInterface
Результат Guzzle\Http\Message\RequestInterface

getSession() публичный Метод

Returns session of the upgrade request.
public getSession ( ) : Symfony\Component\HttpFoundation\Session\SessionInterface
Результат Symfony\Component\HttpFoundation\Session\SessionInterface

getToken() публичный Метод

Returns token for given firewall.
public getToken ( string $firewall ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null
$firewall string
Результат Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null

getUser() публичный Метод

Returns user for given firewall.
public getUser ( string $firewall ) : Sulu\Component\Security\Authentication\UserInterface | null
$firewall string
Результат Sulu\Component\Security\Authentication\UserInterface | null

has() публичный Метод

Get parameter with given name.
public has ( string $name ) : boolean
$name string
Результат boolean

isValid() публичный Метод

Indicates that the context is valid.
public isValid ( ) : boolean
Результат boolean

set() публичный Метод

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