Skip to content

Commit

Permalink
Rootpath for default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDevTmas committed Jul 8, 2014
1 parent d3b36d1 commit 54f3ae8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions idealsepa/Connector/Configuration/DefaultConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class DefaultConfiguration implements IConnectorConfiguration

private $logFile = "logs/connector.log";
private $logLevel = LogLevel::Error;

private $rootPath = '';

function __construct($path)
{
Expand Down Expand Up @@ -187,12 +189,12 @@ private function loadFromFile($path)

public function getAcquirerCertificatePath()
{
return $this->acquirerCertificate;
return $this->rootPath . $this->acquirerCertificate;
}

public function getCertificatePath()
{
return $this->certificate;
return $this->rootPath . $this->certificate;
}

public function getExpirationPeriod()
Expand All @@ -212,7 +214,7 @@ public function getPassphrase()

public function getPrivateKeyPath()
{
return $this->privateKey;
return $this->rootPath . $this->privateKey;
}

public function getMerchantReturnURL()
Expand Down Expand Up @@ -277,4 +279,9 @@ public function getLogLevel()
{
return $this->logLevel;
}

public function setRootPath($rootPath)
{
$this->rootPath = $rootPath;
}
}

0 comments on commit 54f3ae8

Please sign in to comment.