|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Jenky\Hermes\Facades; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Support\Facades\Facade; |
|
6
|
|
|
use Jenky\Hermes\Contracts\Hermes; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* @method static \GuzzleHttp\Client channel(string $name, array $options = []) |
|
10
|
|
|
* @method static \Psr\Http\Message\ResponseInterface get(string|UriInterface $uri, array $options = []) |
|
11
|
|
|
* @method static \Psr\Http\Message\ResponseInterface head(string|UriInterface $uri, array $options = []) |
|
12
|
|
|
* @method static \Psr\Http\Message\ResponseInterface put(string|UriInterface $uri, array $options = []) |
|
13
|
|
|
* @method static \Psr\Http\Message\ResponseInterface post(string|UriInterface $uri, array $options = []) |
|
14
|
|
|
* @method static \Psr\Http\Message\ResponseInterface patch(string|UriInterface $uri, array $options = []) |
|
15
|
|
|
* @method static \Psr\Http\Message\ResponseInterface delete(string|UriInterface $uri, array $options = []) |
|
16
|
|
|
* @method static \GuzzleHttp\Promise\PromiseInterface getAsync(string|UriInterface $uri, array $options = []) |
|
17
|
|
|
* @method static \GuzzleHttp\Promise\PromiseInterface headAsync(string|UriInterface $uri, array $options = []) |
|
18
|
|
|
* @method static \GuzzleHttp\Promise\PromiseInterface putAsync(string|UriInterface $uri, array $options = []) |
|
19
|
|
|
* @method static \GuzzleHttp\Promise\PromiseInterface postAsync(string|UriInterface $uri, array $options = []) |
|
20
|
|
|
* @method static \GuzzleHttp\Promise\PromiseInterface patchAsync(string|UriInterface $uri, array $options = []) |
|
21
|
|
|
* @method static \GuzzleHttp\Promise\PromiseInterface deleteAsync(string|UriInterface $uri, array $options = []) |
|
22
|
|
|
* |
|
23
|
|
|
* @see \Jenky\Hermes\GuzzleManager |
|
24
|
|
|
* @see \GuzzleHttp\Client |
|
25
|
|
|
*/ |
|
26
|
|
|
class Guzzle extends Facade |
|
27
|
|
|
{ |
|
28
|
|
|
/** |
|
29
|
|
|
* Get the registered name of the component. |
|
30
|
|
|
* |
|
31
|
|
|
* @return string |
|
32
|
|
|
*/ |
|
33
|
|
|
protected static function getFacadeAccessor() |
|
34
|
|
|
{ |
|
35
|
|
|
return Hermes::class; |
|
36
|
|
|
} |
|
37
|
|
|
} |
|
38
|
|
|
|