ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CookieJarFactoryImpl.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\HTTP\Cookies;
4 
7 
19 {
20 
24  public function fromCookieStrings($cookieStrings)
25  {
26  return new CookieJarWrapper(SetCookies::fromSetCookieStrings($cookieStrings));
27  }
28 
29 
34  {
35  return new CookieJarWrapper(SetCookies::fromResponse($response));
36  }
37 }
fromCookieStrings($cookieStrings)
Create CookieJar from a collection of Cookie header value strings.$cookieStringsCookieJar ...
static fromResponse(ResponseInterface $response)
Create SetCookies from a Response.
Definition: SetCookies.php:124
static fromSetCookieStrings($setCookieStrings)
Create SetCookies from a collection of SetCookie header value strings.
Definition: SetCookies.php:111
Class CookieJarWrapperTest.
Definition: Cookie.php:3
fromResponse(ResponseInterface $response)
Create CookieJar from a Response.CookieJar
Representation of an outgoing, server-side response.
$response