request !== null) { throw new \LogicException('The request context has already been initialized.'); } $this->request = $request; } public function current(): ?Request { return $this->request; } public function clear(): void { $this->request = null; } }