public function RequestStack::pop in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/RequestStack.php \Symfony\Component\HttpFoundation\RequestStack::pop()
Pops the current request from the stack.
This operation lets the current request go out of scope.
This method should generally not be called directly as the stack management should be taken care of by the application itself.
Return value
Request|null
File
- vendor/
symfony/ http-foundation/ RequestStack.php, line 47
Class
- RequestStack
- Request stack that controls the lifecycle of requests.
Namespace
Symfony\Component\HttpFoundationCode
public function pop() {
if (!$this->requests) {
return;
}
return array_pop($this->requests);
}