|
1
|
|
|
<?php namespace Algorit\Synchronizer\Request\Methods; |
|
2
|
|
|
|
|
3
|
|
|
// https://github.com/rmccue/Requests |
|
4
|
|
|
use Requests as Method; |
|
5
|
|
|
|
|
6
|
|
|
class Requests implements MethodInterface { |
|
7
|
|
|
|
|
8
|
|
|
public function head($url, $headers = array(), $options = array()) |
|
9
|
|
|
{ |
|
10
|
|
|
return Method::head($url, $headers, $options); |
|
11
|
|
|
} |
|
12
|
|
|
|
|
13
|
|
|
public function get($url, $headers = array(), $options = array()) |
|
14
|
|
|
{ |
|
15
|
|
|
return Method::get($url, $headers, $options); |
|
16
|
|
|
} |
|
17
|
|
|
|
|
18
|
|
|
public function post($url, $headers = array(), $data = array(), $options = array()) |
|
19
|
|
|
{ |
|
20
|
|
|
return Method::post($url, $headers, $data, $options); |
|
21
|
|
|
} |
|
22
|
|
|
|
|
23
|
|
|
public function put($url, $headers = array(), $data = array(), $options = array()) |
|
24
|
|
|
{ |
|
25
|
|
|
return Method::put($url, $headers, $data, $options); |
|
26
|
|
|
} |
|
27
|
|
|
|
|
28
|
|
|
public function delete($url, $headers = array(), $options = array()) |
|
29
|
|
|
{ |
|
30
|
|
|
return Method::delete($url, $headers, $options); |
|
31
|
|
|
} |
|
32
|
|
|
|
|
33
|
|
|
public function patch($url, $headers = array(), $options = array()) |
|
34
|
|
|
{ |
|
35
|
|
|
return Method::patch($url, $headers, $options); |
|
36
|
|
|
} |
|
37
|
|
|
|
|
38
|
|
|
} |