ILIAS  release_8 Revision v8.23
CookieJarFactoryImpl.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\HTTP\Cookies;
4 
7 
8 /******************************************************************************
9  *
10  * This file is part of ILIAS, a powerful learning management system.
11  *
12  * ILIAS is licensed with the GPL-3.0, you should have received a copy
13  * of said license along with the source code.
14  *
15  * If this is not the case or you just want to try ILIAS, you'll find
16  * us at:
17  * https://www.ilias.de
18  * https://github.com/ILIAS-eLearning
19  *
20  *****************************************************************************/
32 {
36  public function fromCookieStrings(array $cookieStrings): CookieJar
37  {
38  return new CookieJarWrapper(SetCookies::fromSetCookieStrings($cookieStrings));
39  }
40 
41 
45  public function fromResponse(ResponseInterface $response): CookieJar
46  {
47  return new CookieJarWrapper(SetCookies::fromResponse($response));
48  }
49 }
fromCookieStrings(array $cookieStrings)
Create CookieJar from a collection of Cookie header value strings.$cookieStrings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Cookie.php:19
fromResponse(ResponseInterface $response)
Create CookieJar from a Response.
$response