ILIAS  release_8 Revision v8.23
ILIAS\HTTP\Cookies\CookieJarFactoryImpl Class Reference
+ Inheritance diagram for ILIAS\HTTP\Cookies\CookieJarFactoryImpl:
+ Collaboration diagram for ILIAS\HTTP\Cookies\CookieJarFactoryImpl:

Public Member Functions

 fromCookieStrings (array $cookieStrings)
 Create CookieJar from a collection of Cookie header value strings.
Parameters
string[]$cookieStrings
More...
 
 fromResponse (ResponseInterface $response)
 Create CookieJar from a Response. More...
 

Detailed Description

Definition at line 31 of file CookieJarFactoryImpl.php.

Member Function Documentation

◆ fromCookieStrings()

ILIAS\HTTP\Cookies\CookieJarFactoryImpl::fromCookieStrings ( array  $cookieStrings)

Create CookieJar from a collection of Cookie header value strings.

Parameters
string[]$cookieStrings

Implements ILIAS\HTTP\Cookies\CookieJarFactory.

Definition at line 36 of file CookieJarFactoryImpl.php.

36  : CookieJar
37  {
38  return new CookieJarWrapper(SetCookies::fromSetCookieStrings($cookieStrings));
39  }

◆ fromResponse()

ILIAS\HTTP\Cookies\CookieJarFactoryImpl::fromResponse ( ResponseInterface  $response)

Create CookieJar from a Response.

Implements ILIAS\HTTP\Cookies\CookieJarFactory.

Definition at line 45 of file CookieJarFactoryImpl.php.

45  : CookieJar
46  {
47  return new CookieJarWrapper(SetCookies::fromResponse($response));
48  }
$response

The documentation for this class was generated from the following file: