function CookieJar::__construct
Parameters
bool $strictMode Set to true to throw exceptions when invalid: cookies are added to the cookie jar.
array $cookieArray Array of SetCookie objects or a hash of: arrays that can be used with the SetCookie constructor
4 calls to CookieJar::__construct()
- FileCookieJar::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ FileCookieJar.php - Create a new FileCookieJar object
- FileCookieJar::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ FileCookieJar.php - Create a new FileCookieJar object
- SessionCookieJar::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SessionCookieJar.php - Create a new SessionCookieJar object
- SessionCookieJar::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SessionCookieJar.php - Create a new SessionCookieJar object
2 methods override CookieJar::__construct()
- FileCookieJar::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ FileCookieJar.php - Create a new FileCookieJar object
- SessionCookieJar::__construct in vendor/
guzzlehttp/ guzzle/ src/ Cookie/ SessionCookieJar.php - Create a new SessionCookieJar object
File
-
vendor/
guzzlehttp/ guzzle/ src/ Cookie/ CookieJar.php, line 30
Class
- CookieJar
- Cookie jar that stores cookies as an array
Namespace
GuzzleHttp\CookieCode
public function __construct(bool $strictMode = false, array $cookieArray = []) {
$this->strictMode = $strictMode;
foreach ($cookieArray as $cookie) {
if (!$cookie instanceof SetCookie) {
$cookie = new SetCookie($cookie);
}
$this->setCookie($cookie);
}
}