guilhermednt / hwi-oauth-proxy-bundle
Bundle to enable proxy for HWIOAuthBundle
Installs: 1 768
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-12-12 04:14:39 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!