This bundle extends HWIOAuthBundle to be able to extend the Curl client from Buzz.
Add the bundle to your composer.json
:
{
"require": {
"guilhermednt/hwi-oauth-proxy-bundle": "dev-master"
}
}
Then run the update command:
$ composer update guilhermednt/hwi-oauth-proxy-bundle
Enable the bundle in your AppKernel.php
:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Donato\Generic\HWIOAuthProxyBundle\DonatoGenericHWIOAuthProxyBundle(),
);
}
This bundle does not require you to change config.yml
, so that you can have different configuration scenarios for each environment you have.
The minimum configuration needed is this:
# app/config/parameters.yml
parameters:
http_proxy: ~
Below you can see an example for HTTP Proxy with Authentication:
# app/config/parameters.yml
imports:
- { resource: constants.php }
parameters:
# ... your regular parameters ...
http_proxy:
type: HTTP
host: my.proxy.example.com
port: 1234
auth: username:password
Now you can use HWIOAuthBundle
normally and it will work behind your proxy!