2017 © Pedro Peláez
 

symfony-bundle hwi-oauth-proxy-bundle

Bundle to enable proxy for HWIOAuthBundle

image

guilhermednt/hwi-oauth-proxy-bundle

Bundle to enable proxy for HWIOAuthBundle

  • Wednesday, March 12, 2014
  • by guilhermednt
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,373 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

hwi-oauth-proxy-bundle

This bundle extends HWIOAuthBundle to be able to extend the Curl client from Buzz., (*1)

Installation

Step 1: Add package as requirement in Composer

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

Step 2: Tell Symfony2 about it.

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)

app/config/parameters.yml

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)

That's it!

Now you can use HWIOAuthBundle normally and it will work behind your proxy!, (*12)

The Versions

12/03 2014

dev-master

9999999-dev http://github.com/guilhermednt/hwi-oauth-proxy-bundle

Bundle to enable proxy for HWIOAuthBundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Guilherme Donato

service http proxy hwioauthbundle