guilhermednt / hwi-oauth-proxy-bundle
Bundle to enable proxy for HWIOAuthBundle
Installs: 1 800
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/guilhermednt/hwi-oauth-proxy-bundle
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-10-12 05:47:04 UTC
README
This bundle extends HWIOAuthBundle to be able to extend the Curl client from Buzz.
Installation
Step 1: Add package as requirement in Composer
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
Step 2: Tell Symfony2 about it.
Enable the bundle in your AppKernel.php:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Donato\Generic\HWIOAuthProxyBundle\DonatoGenericHWIOAuthProxyBundle(), ); }
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:
# 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
That's it!
Now you can use HWIOAuthBundle normally and it will work behind your proxy!