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

Commit

Permalink
Fixed getting PhantomJs client
Browse files Browse the repository at this point in the history
  • Loading branch information
xphoenyx authored Mar 18, 2019
1 parent 7cbe702 commit 1ec37c5
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 1ec37c5

Please sign in to comment.