Commit 60bd42fc authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

Merge branch 'exception-on-my-extensions' into 'develop'

[BUGFIX] Uses right variable and initializes it before

See merge request !131
parents 7bcdcba7 13bf05ec
Pipeline #1837 passed with stages
in 3 minutes and 24 seconds
......@@ -116,9 +116,13 @@ abstract class AbstractTerBasedController extends \T3o\TerFe2\Controller\Abstrac
throw new \Exception('No wsdl set to connect to TER server');
}
if (empty($this->terSettings['httpAuth'])) {
$this->terSettings['httpAuth'] = [];
}
// Create connection
$wsdl = $this->terSettings['wsdl'];
return $this->objectManager->get(\T3o\TerFe2\Service\Ter::class, $wsdl, $this->terAccount['username'], $this->terAccount['password'], $this->terAccount['httpAuth']);
return $this->objectManager->get(\T3o\TerFe2\Service\Ter::class, $wsdl, $this->terAccount['username'], $this->terAccount['password'], $this->terSettings['httpAuth']);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment