Skip to content

Commit 7aea63e

Browse files
committed
Update facade
1 parent d3da30f commit 7aea63e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/Facades/Guzzle.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,26 @@
33
namespace Jenky\Hermes\Facades;
44

55
use Illuminate\Support\Facades\Facade;
6+
use Jenky\Hermes\Contracts\Hermes;
67

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+
*/
726
class Guzzle extends Facade
827
{
928
/**
@@ -13,6 +32,6 @@ class Guzzle extends Facade
1332
*/
1433
protected static function getFacadeAccessor()
1534
{
16-
return 'hermes';
35+
return Hermes::class;
1736
}
1837
}

0 commit comments

Comments
 (0)