Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix proxy issue

  • Loading branch information...
commit 1713fe326764df66b695e173d5f26843c95fe9b7 1 parent dd604a5
Karim Malhas authored
View
5 src/Mapbender/Component/HTTP/HTTPClient.php
@@ -21,6 +21,7 @@ class HTTPClient {
public function __construct($container = null){
$this->ch = curl_init();
+ $this->container = $container;
$proxyConf = null;
if($this->container){
@@ -30,12 +31,12 @@ public function __construct($container = null){
// thrown when the parameter is not set
// maybe some logging ?
$proxyConf = array();
- $this->container->get('logging')->debug('Not using Proxy Configuuration');
+ $this->container->get('logger')->debug('Not using Proxy Configuuration');
}
if($proxyConf && isset($proxyConf['host']) && $proxyConf['host'] != ""){
$this->setProxyHost($proxyConf['host']);
$this->setProxyPort($proxyConf['port']?:null);
- $this->container->get('logging')
+ $this->container->get('logger')
->debug(sprintf('Making Request via Proxy: %s:%s',
$this->getProxyHost(),
$this->getProxyPort()));
View
2  src/Mapbender/WmsBundle/Controller/WMSController.php
@@ -106,7 +106,7 @@ public function previewAction(){
return $this->render("MapbenderWmsBundle:WMS:register.html.twig",array("getcapa_url",$getcapa_url));
}
try {
- $client = new HTTPClient($container=$this->container);
+ $client = new HTTPClient($this->container);
if($user){
$client->setUsername($user);
$client->setPassword($password);
Please sign in to comment.
Something went wrong with that request. Please try again.