PHP Class SensioLabs\Consul\Client

Show file Open project: sensiolabs/consul-php-sdk

Public Methods

Method Description
__construct ( array $options = [], Psr\Log\LoggerInterface $logger = null, Client $client = null )
delete ( $url, array $options = [] )
get ( $url = null, array $options = [] )
head ( $url, array $options = [] )
options ( $url, array $options = [] )
patch ( $url, array $options = [] )
post ( $url, array $options = [] )
put ( $url, array $options = [] )

Private Methods

Method Description
doRequest ( $method, $url, $options )
formatResponse ( Response $response )

Method Details

__construct() public method

public __construct ( array $options = [], Psr\Log\LoggerInterface $logger = null, Client $client = null )
$options array
$logger Psr\Log\LoggerInterface
$client GuzzleHttp\Client

delete() public method

public delete ( $url, array $options = [] )
$options array

get() public method

public get ( $url = null, array $options = [] )
$options array

head() public method

public head ( $url, array $options = [] )
$options array

options() public method

public options ( $url, array $options = [] )
$options array

patch() public method

public patch ( $url, array $options = [] )
$options array

post() public method

public post ( $url, array $options = [] )
$options array

put() public method

public put ( $url, array $options = [] )
$options array