Symfony\Component\BrowserKit\CookieJar::get
Gets a cookie by name.
You should never use an empty domain, but if you do so, this method returns the first cookie for the given name/path (this behavior ensures a BC behavior with previous versions of Symfony).
Signature
public function get(string
$name,
[string
$path = '/',
[string
$domain = null]] )
Parameters
$name
— string- The cookie name
$path
— string- The cookie path
$domain
— string- The cookie domain
Returns
- Cookie|null
- A Cookie instance or null if the cookie does not exist