You are here

public function ServerRequest::getAttributes in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-diactoros/src/ServerRequest.php \Zend\Diactoros\ServerRequest::getAttributes()
  2. 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\ServerRequest::getAttributes()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/ServerRequest.php \Zend\Diactoros\ServerRequest::getAttributes()

Retrieve attributes derived from the request.

The request "attributes" may be used to allow injection of any parameters derived from the request: e.g., the results of path match operations; the results of decrypting cookies; the results of deserializing non-form-encoded message bodies; etc. Attributes will be application and request specific, and CAN be mutable.

Return value

array Attributes derived from the request.

Overrides ServerRequestInterface::getAttributes

File

vendor/zendframework/zend-diactoros/src/ServerRequest.php, line 174

Class

ServerRequest
Server-side HTTP request

Namespace

Zend\Diactoros

Code

public function getAttributes() {
  return $this->attributes;
}