|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace MedianetDev\PConnector\Facade; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Support\Facades\Facade; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @method static \MedianetDev\PConnector\PConnector send(string $path = '', array $data = [], string $method = 'GET') |
|
9
|
|
|
* @method static \MedianetDev\PConnector\PConnector post(string $path = '', array $data = []) |
|
10
|
|
|
* @method static \MedianetDev\PConnector\PConnector get(string $path = '', array $data = []) |
|
11
|
|
|
* @method static \MedianetDev\PConnector\PConnector put(string $path = '', array $data = []) |
|
12
|
|
|
* @method static \MedianetDev\PConnector\PConnector patch(string $path = '', array $data = []) |
|
13
|
|
|
* @method static \MedianetDev\PConnector\PConnector delete(string $path = '', array $data = []) |
|
14
|
|
|
* @method static \MedianetDev\PConnector\PConnector profile(string $profile) It's **RECOMMENDED** to use the profile before using any other setting function to not override any setting |
|
15
|
|
|
* @method static \MedianetDev\PConnector\PConnector url(string $url) |
|
16
|
|
|
* @method static \MedianetDev\PConnector\PConnector setUrl(string $url) |
|
17
|
|
|
* @method static \MedianetDev\PConnector\PConnector withAuth() |
|
18
|
|
|
* @method static \MedianetDev\PConnector\PConnector withoutAuth() |
|
19
|
|
|
* @method static \MedianetDev\PConnector\PConnector withLog() |
|
20
|
|
|
* @method static \MedianetDev\PConnector\PConnector withoutLog() |
|
21
|
|
|
* @method static \MedianetDev\PConnector\PConnector withHeaders(array $headers) |
|
22
|
|
|
* @method static \MedianetDev\PConnector\PConnector withHeader(string $key, string $value) |
|
23
|
|
|
* @method static \MedianetDev\PConnector\PConnector lang(string $locale = null) |
|
24
|
|
|
* @method static \MedianetDev\PConnector\PConnector objectResponse() |
|
25
|
|
|
* @method static \MedianetDev\PConnector\PConnector htmlResponse() |
|
26
|
|
|
* @method static \MedianetDev\PConnector\PConnector arrayResponse() |
|
27
|
|
|
* @method static \MedianetDev\PConnector\PConnector dump() |
|
28
|
|
|
* @method static void logout(string $profile) |
|
29
|
|
|
* |
|
30
|
|
|
* @see \MedianetDev\PConnector\PConnector |
|
31
|
|
|
*/ |
|
32
|
|
|
class PConnector extends Facade |
|
33
|
|
|
{ |
|
34
|
|
|
/** |
|
35
|
|
|
* Get the registered name of the component. |
|
36
|
|
|
* |
|
37
|
|
|
* @return string |
|
38
|
|
|
*/ |
|
39
|
|
|
protected static function getFacadeAccessor() |
|
40
|
|
|
{ |
|
41
|
|
|
self::clearResolvedInstance('p-connector'); |
|
42
|
|
|
|
|
43
|
|
|
return 'p-connector'; |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|