Class ApiClient
API client. For now is a Guzzle client which has been extended to allow to pass route names instead of just the URI and easily pass the token.
- FrontBundle\Client\ApiClient implements FrontBundle\Client\ClientInterface
Namespace: FrontBundle\Client
Author: Théo FIDRY theo.fidry@gmail.com
Located at FrontBundle/Client/ApiClient.php
Author: Théo FIDRY theo.fidry@gmail.com
Located at FrontBundle/Client/ApiClient.php
public
|
#
__construct( GuzzleHttp\ClientInterface $client,
|
public
Psr\Http\Message\RequestInterface
|
#
createRequest( string $method, string|null $url = null, string|null $token = null, array $options = [] )
Creates and return a new Request object. All get, head, etc. methods are generated via this method. |
public
ResponseInterface
|
|
public
ResponseInterface
|