Skip to content

Instantly share code, notes, and snippets.

@nachopants
Created August 14, 2014 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nachopants/887da1dd2e556044585e to your computer and use it in GitHub Desktop.
Save nachopants/887da1dd2e556044585e to your computer and use it in GitHub Desktop.
guzzle.client.class: Guzzle\Http\Client
guzzle.classsuper.client:
class: %guzzle.client.class%
arguments: [%class.baseurl%, [auth, [%class.auth.username%,%class.auth.password%,basic]]]
use Misd\GuzzleBundle\MisdGuzzleBundle;
$client = $this->get('guzzle.classsuper.client');
$request = $client->get();
echo $response = $request->send()->getBody();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment