Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from xphoenyx/develop
Browse files Browse the repository at this point in the history
Fixed getting PhantomJs client
  • Loading branch information
mrjosh authored Mar 18, 2019
2 parents 7cbe702 + 1ec37c5 commit 23e6613
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PhantomJs.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public function getContainer() : PhantomJsServiceContainer
*/
public function getClient() : Client
{
if (!$this->client) {
$this->setClient();
}

return $this->client;
}

Expand Down Expand Up @@ -302,4 +306,4 @@ public function send(RequestInterface $request, ResponseInterface $response = nu
{
return $this->getClient()->send($request, ( is_null($response) ? new Response : $response ) );
}
}
}

0 comments on commit 23e6613

Please sign in to comment.