Skip to content

Commit

Permalink
Add setSchemasPath to Auth class. Fix backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Nov 25, 2019
1 parent 8ac9679 commit ab06f5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/Saml2/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,17 @@ public function setStrict($value)
$this->_settings->setStrict($value);
}

/**
* Set schemas path
*
* @param string $path
* @return $this
*/
public function setSchemasPath($path)
{
$this->_paths['schemas'] = $path;
}

/**
* Process the SAML Response sent by the IdP.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Saml2/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function getSchemasPath()
if (isset($this->_paths['schemas'])) {
return $this->_paths['schemas'];
}
return $this->_paths['lib'].'schemas/';
return __DIR__ . '/schemas/';
}

/**
Expand Down

0 comments on commit ab06f5f

Please sign in to comment.