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
): ServerRequestInterfaceParameters#
- $name
- $value
Return values#
ServerRequestInterface