PHP Трейт Sentinel\Traits\SentinelRedirectionTrait

Показать файл Открыть проект

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

Метод Описание
extractParameters ( $specifications, $payload ) : array Extract URL data from the payload
generateUrl ( array $direction, array $payload = [] ) : string | null Generate URL from an array found in the config file
redirectBack ( $message, $payload = [] ) Redirect back to the previous page.
redirectTo ( $key, array $message = [], array $payload = [] ) : Response Redirect the browser to the appropriate location, based on config options
redirectViaResponse ( $key, Sentinel\DataTransferObjects\BaseResponse $response ) : Response Use a ResponseObject to generate a browser redirect, based on config options

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

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

Extract URL data from the payload
public extractParameters ( $specifications, $payload ) : array
$specifications
$payload
Результат array

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

Generate URL from an array found in the config file
public generateUrl ( array $direction, array $payload = [] ) : string | null
$direction array
$payload array
Результат string | null

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

Redirect back to the previous page.
public redirectBack ( $message, $payload = [] )
$message
$payload

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

Redirect the browser to the appropriate location, based on config options
public redirectTo ( $key, array $message = [], array $payload = [] ) : Response
$key
$message array
$payload array
Результат Response

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

Use a ResponseObject to generate a browser redirect, based on config options
public redirectViaResponse ( $key, Sentinel\DataTransferObjects\BaseResponse $response ) : Response
$key
$response Sentinel\DataTransferObjects\BaseResponse
Результат Response