public function RequestStack::getCurrentRequest in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Symfony/Component/HttpFoundation/RequestStack.php \Symfony\Component\HttpFoundation\RequestStack::getCurrentRequest()
Return value
Request|null
File
- lib/
Symfony/ Component/ HttpFoundation/ RequestStack.php, line 59
Class
- RequestStack
- Request stack that controls the lifecycle of requests.
Namespace
Symfony\Component\HttpFoundationCode
public function getCurrentRequest() {
return end($this->requests) ?: null;
}