Symfony\Component\HttpFoundation\Request::__clone PHP Method

__clone() public method

Note that the session is not cloned as duplicated requests are most of the time sub-requests of the main one.
public __clone ( )
    public function __clone()
    {
        $this->query = clone $this->query;
        $this->request = clone $this->request;
        $this->attributes = clone $this->attributes;
        $this->cookies = clone $this->cookies;
        $this->files = clone $this->files;
        $this->server = clone $this->server;
        $this->headers = clone $this->headers;
    }