YoastSEO_Vendor\GuzzleHttp\Cookie
FileCookieJar::__construct() public Yoast 1.0
Create a new FileCookieJar object
{} Это метод класса: FileCookieJar{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$FileCookieJar = new FileCookieJar(); $FileCookieJar->__construct( $cookieFile, $storeSessionCookies );
- $cookieFile(строка) (обязательный)
- File to store the cookie data
- $storeSessionCookies(true/false)
- Set to true to store session cookies in the cookie jar.
По умолчанию: \false
Код FileCookieJar::__construct() FileCookieJar:: construct Yoast 15.6.2
public function __construct($cookieFile, $storeSessionCookies = \false)
{
$this->filename = $cookieFile;
$this->storeSessionCookies = $storeSessionCookies;
if (\file_exists($cookieFile)) {
$this->load($cookieFile);
}
}