Class Guzzle\Plugin\Cookie\CookiePlugin

InheritanceGuzzle\Plugin\Cookie\CookiePlugin
ImplementsSymfony\Component\EventDispatcher\EventSubscriberInterface

Adds, extracts, and persists cookies between HTTP requests

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$cookieJar Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface Cookie cookieJar used to hold cookies Guzzle\Plugin\Cookie\CookiePlugin

Property Details

$cookieJar protected property

Cookie cookieJar used to hold cookies

Method Details

__construct() public method

public void __construct ( Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface $cookieJar null )
$cookieJar Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface

Cookie jar used to hold cookies. Creates an ArrayCookieJar by default.

getCookieJar() public method

Get the cookie cookieJar

public Guzzle\Plugin\Cookie\CookieJar\CookieJarInterface getCookieJar ( )
getSubscribedEvents() public static method

public static void getSubscribedEvents ( )
onRequestBeforeSend() public method

Add cookies before a request is sent

public void onRequestBeforeSend ( Guzzle\Common\Event $event )
$event Guzzle\Common\Event
onRequestSent() public method

Extract cookies from a sent request

public void onRequestSent ( Guzzle\Common\Event $event )
$event Guzzle\Common\Event