Zend\Http\Cookies::fromResponse
Create a new Cookies object and automatically load into it all the cookies set in a Response object. If $uri is set, it will be considered as the requested URI for setting default domain and path of the cookie.
Signature
public function fromResponse(Response
$response,
Uri|string
$refUri )
Parameters
$response
— Zend\Http\Response- HTTP Response object
$refUri
— object- The requested URI
Returns
- Cookies
Line | Task |
---|---|
343+ | Add the $uri functionality. |