Skip to content

Commit 91499b7

Browse files
author
Ben Speakman
committed
Use injected Guzzle client
1 parent 3b66833 commit 91499b7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Cyberduck/LaravelWpApi/WpApi.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ public function archive($year, $month, $page = null)
5656
public function _get($method, array $query = array())
5757
{
5858

59-
$client = new Client();
60-
6159
try {
6260

63-
$response = $client->get($this->endpoint . '/wp-json/' . $method, ['query' => $query]);
61+
$response = $this->client->get($this->endpoint . '/wp-json/' . $method, ['query' => $query]);
6462

6563
$return = [
6664
'results' => $response->json(),

0 commit comments

Comments
 (0)