Add the required package using composer.
composer require csa/guzzle-bundle:^2.0
composer require csa/guzzle-bundle:^1.3
composer require csa/guzzle-bundle:@dev
Add the bundle to your AppKernel.
// in %kernel.root_dir%/AppKernel.php
$bundles = array(
// ...
new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),
// ...
);
To enable the data collector (only in the dev
environment, you may simply
configure the CsaGuzzleBundle as follows:
csa_guzzle:
profiler: '%kernel.debug%'
You may also enable the included logger, in order log outcoming requests:
csa_guzzle:
logger: true
Next section: Creating clients