dependencies-upgrade
This commit is contained in:
@@ -153,6 +153,19 @@ class CookieJar implements JarContract
|
||||
$this->queued[$cookie->getName()][$cookie->getPath()] = $cookie;
|
||||
}
|
||||
|
||||
/**
|
||||
* Queue a cookie to expire with the next response.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string|null $path
|
||||
* @param string|null $domain
|
||||
* @return void
|
||||
*/
|
||||
public function expire($name, $path = null, $domain = null)
|
||||
{
|
||||
$this->queue($this->forget($name, $path, $domain));
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a cookie from the queue.
|
||||
*
|
||||
@@ -214,4 +227,16 @@ class CookieJar implements JarContract
|
||||
{
|
||||
return Arr::flatten($this->queued);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush the cookies which have been queued for the next request.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function flushQueuedCookies()
|
||||
{
|
||||
$this->queued = [];
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user