Class BaseController
- Symfony\Bundle\FrameworkBundle\Controller\Controller
-
FrontBundle\Controller\BaseController implements FrontBundle\Controller\ApiControllerInterface
Direct known subclasses
FrontBundle\Controller\JobController, FrontBundle\Controller\MandateController, FrontBundle\Controller\UserController
Namespace: FrontBundle\Controller
Author: Théo FIDRY theo.fidry@gmail.com
Located at FrontBundle/Controller/BaseController.php
Author: Théo FIDRY theo.fidry@gmail.com
Located at FrontBundle/Controller/BaseController.php
public
|
|
public
string
|
#
generateUrl( string $route, array $parameters = [], boolean|string $referenceType = FrontBundle\Controller\UrlGeneratorInterface::ABSOLUTE_PATH )
Generates a URL from the given parameters. |
public
array
|
|
public
Psr\Http\Message\RequestInterface
|
#
createRequest( string $method, string|null $url = null, Symfony\Component\HttpFoundation\Request|Psr\Http\Message\RequestInterface|string|null $token = null, array $options = [], $wholeCollection = false )
Send a GET request for the client and decode its response body. |
public
array
|
#
requestAndDecode( string $method, string|null $url = null, Symfony\Component\HttpFoundation\Request|Psr\Http\Message\RequestInterface|string|null $token = null, array $options = [], boolean $wholeCollection = false )
Send a GET request for the client and decode its response body. |
public
array
|
#
sendAndDecode( Psr\Http\Message\RequestInterface $request, boolean $wholeCollection = false )
Sends a single request and decode its response body. |
public
|
#
handleGuzzleException( GuzzleHttp\Exception\TransferException $exception )
Handle Guzzle exceptions. Assumes the exception was thrown while sending a request to the API. For more information regarding Guzzle exceptions, refer to * http://guzzle.readthedocs.org/en/latest/quickstart.html#exceptions. |
public
|
protected
|
$client
|
|
protected
Symfony\Component\Serializer\SerializerInterface|Symfony\Component\Serializer\Normalizer\NormalizerInterface|Symfony\Component\Serializer\Encoder\DecoderInterface
|
$serializer
|