You are here

public function RequestStack::push in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/RequestStack.php \Symfony\Component\HttpFoundation\RequestStack::push()

Pushes a Request on the stack.

This method should generally not be called directly as the stack management should be taken care of by the application itself.

File

vendor/symfony/http-foundation/RequestStack.php, line 32

Class

RequestStack
Request stack that controls the lifecycle of requests.

Namespace

Symfony\Component\HttpFoundation

Code

public function push(Request $request) {
  $this->requests[] = $request;
}