Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Added proxy config support
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Correia committed Jun 11, 2014
1 parent 929c883 commit da665b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DependencyInjection/Configuration.php
Expand Up @@ -29,7 +29,9 @@ public function getConfigTreeBuilder()
->children()
->scalarNode('client_timeout')
->defaultValue(5)
->end()
->end()
->scalarNode('proxy')
->defaultNull()
->end()
->end()
;
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/SensioBuzzExtension.php
Expand Up @@ -23,5 +23,6 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('buzz.xml');

$container->setParameter('buzz.client.timeout', $config['client_timeout']);
$container->setParameter('buzz.client.proxy', $config['proxy']);
}
}
3 changes: 3 additions & 0 deletions Resources/config/buzz.xml
Expand Up @@ -16,6 +16,9 @@
<call method="setTimeout">
<argument>%buzz.client.timeout%</argument>
</call>
<call method="setProxy">
<argument>%buzz.client.proxy%</argument>
</call>
</service>

<service id="buzz" class="%buzz.browser.class%">
Expand Down

0 comments on commit da665b0

Please sign in to comment.