dev-master
9999999-dev http://github.com/guilhermednt/hwi-oauth-proxy-bundleBundle to enable proxy for HWIOAuthBundle
MIT
The Requires
- php >=5.3.0
by Guilherme Donato
service http proxy hwioauthbundle
Bundle to enable proxy for HWIOAuthBundle
This bundle extends HWIOAuthBundle to be able to extend the Curl client from Buzz., (*1)
Add the bundle to your composer.json
:, (*2)
``` js { "require": { "guilhermednt/hwi-oauth-proxy-bundle": "dev-master" } }, (*3)
Then run the update command: ``` bash $ composer update guilhermednt/hwi-oauth-proxy-bundle
Enable the bundle in your AppKernel.php
:, (*4)
``` php <?php // app/AppKernel.php, (*5)
public function registerBundles() { $bundles = array( // ... new Donato\Generic\HWIOAuthProxyBundle\DonatoGenericHWIOAuthProxyBundle(), ); }, (*6)
### Step 3: Add desired parameters 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: ``` yaml # app/config/parameters.yml parameters: http_proxy: ~
Below you can see an example for HTTP Proxy with Authentication:, (*7)
``` yaml, (*8)
imports: - { resource: constants.php }, (*9)
parameters: # ... your regular parameters ..., (*10)
http_proxy: type: HTTP host: my.proxy.example.com port: 1234 auth: username:password
```, (*11)
Now you can use HWIOAuthBundle
normally and it will work behind your proxy!, (*12)
Bundle to enable proxy for HWIOAuthBundle
MIT
service http proxy hwioauthbundle