PHP Класс eZ\Publish\Core\REST\Client\HttpClient\Authentication\IntegrationTestAuthenticator

Note: DO NOT USE THIS IN PRODUCTION.
Наследование: implements eZ\Publish\Core\REST\Client\HttpClient, implements eZ\Publish\Core\REST\Client\Sessionable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$innerClient eZ\Publish\Core\REST\Client\HttpClient Inner HTTP client, performing the actual requests.
$sessionId string Session ID.
$userId mixed User ID to be sent to the server.

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

Метод Описание
__construct ( eZ\Publish\Core\REST\Client\HttpClient $innerClient, mixed $userId = 14 ) Creates a new Integration Test Authenticator.
request ( string $method, string $path, Message $message = null ) : Message Execute a HTTP request to the remote server.
setSession ( string $id ) Set the session ID to use.
setUserId ( mixed $userId ) Sets the user ID submitted to the server.

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

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

Creates a new Integration Test Authenticator.
public __construct ( eZ\Publish\Core\REST\Client\HttpClient $innerClient, mixed $userId = 14 )
$innerClient eZ\Publish\Core\REST\Client\HttpClient
$userId mixed

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

Returns the result from the remote server. The client sets the correct headers for Basic Auth into the $message transmitted to the inner client.
public request ( string $method, string $path, Message $message = null ) : Message
$method string
$path string
$message eZ\Publish\Core\REST\Common\Message
Результат eZ\Publish\Core\REST\Common\Message

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

Set the session ID to use.
public setSession ( string $id )
$id string

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

Sets the user ID submitted to the server.
public setUserId ( mixed $userId )
$userId mixed

Описание свойств

$innerClient защищенное свойство

Inner HTTP client, performing the actual requests.
protected HttpClient,eZ\Publish\Core\REST\Client $innerClient
Результат eZ\Publish\Core\REST\Client\HttpClient

$sessionId защищенное свойство

Session ID.
protected string $sessionId
Результат string

$userId защищенное свойство

User ID to be sent to the server.
protected mixed $userId
Результат mixed