Skip to content

Commit

Permalink
config from array
Browse files Browse the repository at this point in the history
  • Loading branch information
asminog committed Apr 24, 2018
1 parent 7f5c725 commit fc9a908
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Saml.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ class Saml extends Object
* Configurations for OneLogin_Saml2_Auth.
* @var array
*/
private $config;
public $config;

public function init()
{
parent::init();

$configFile = Yii::getAlias($this->configFileName);
if (!isset($this->config)) {
$configFile = Yii::getAlias($this->configFileName);

$this->config = require($configFile);
}

$this->config = require($configFile);
$this->instance = new \OneLogin_Saml2_Auth($this->config);
}

Expand Down

0 comments on commit fc9a908

Please sign in to comment.