Add the required package using composer.
composer require csa/guzzle-bundle:dev-master
Add the bundle to your AppKernel.
<?php
// in %kernel.root_dir%/AppKernel.php
$bundles[] = 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%
Simply create a service as follows:
<service
id="acme.client"
class="%acme.client.class%"
factory-service="csa_guzzle.client_factory"
factory-method="create">
<!-- An array of configuration values -->
<tag name="csa_guzzle.client" />
</service>
This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.