diff --git a/src/PhantomJs.php b/src/PhantomJs.php index f8c0a75..855e53c 100644 --- a/src/PhantomJs.php +++ b/src/PhantomJs.php @@ -118,6 +118,10 @@ public function getContainer() : PhantomJsServiceContainer */ public function getClient() : Client { + if (!$this->client) { + $this->setClient(); + } + return $this->client; } @@ -302,4 +306,4 @@ public function send(RequestInterface $request, ResponseInterface $response = nu { return $this->getClient()->send($request, ( is_null($response) ? new Response : $response ) ); } -} \ No newline at end of file +}