phasync
ServerRequest / withAttribute

Method

ServerRequest::withAttribute

Returns a copy with the attribute $name set to $value, for what middleware derived from the request.

Description#

public ServerRequest::withAttribute(
    $name,
    $value
): ServerRequestInterface

Parameters#

$name
$value

Return values#

ServerRequestInterface