Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 9f6295b

Browse files
author
Reza Shadman
committed
Create abstract guzzle repository for all apis.
1 parent 4ba6ce4 commit 9f6295b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Api/GuzzleRepository.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php namespace Quince\Pelastic\Api;
2+
3+
use GuzzleHttp\Client;
4+
use Quince\Pelastic\Contracts\Api\RepositoryInterface;
5+
6+
abstract class GuzzleRepository implements RepositoryInterface {
7+
8+
/**
9+
* Get guzzle client
10+
*
11+
* @return Client
12+
*/
13+
public function getGuzzleClient()
14+
{
15+
return new Client();
16+
}
17+
18+
}

0 commit comments

Comments
 (0)