Skip to content

Commit

Permalink
Allow configure cookie jar before hydrating
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Sep 8, 2020
1 parent af09379 commit c6f0049
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,17 @@ public function cookies(): CookieJar
{
if($this->_cookieJar === null)
{
$this->_cookieJar = new CookieJar();
$this->_cookieJar = $this->_configureCookieJar(new CookieJar());
$this->_cookieJar->hydrate($this->request());
}
return $this->_cookieJar;
}

protected function _configureCookieJar(CookieJar $jar): CookieJar
{
return $jar;
}

/**
* Retrieve the CONTEXT_ENV from the environment
*
Expand Down

0 comments on commit c6f0049

Please sign in to comment.