Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 926 Bytes

install.md

File metadata and controls

58 lines (41 loc) · 926 Bytes

Installation and Configuration

Installation

Add the required package using composer.

Stable version

composer require csa/guzzle-bundle:^2.0

Legacy version

composer require csa/guzzle-bundle:^1.3

Bleeding-edge version

composer require csa/guzzle-bundle:@dev

Enabling the bundle

Add the bundle to your AppKernel.

// in %kernel.root_dir%/AppKernel.php
$bundles = array(
    // ...
    new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),
    // ...
);

Configuration

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