Skip to content

Commit d440771

Browse files
committed
Add setSchemasPath to Auth class and fix backward compatibility
1 parent a186431 commit d440771

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/Saml2/Auth.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,17 @@ public function setStrict($value)
181181
$this->_settings->setStrict($value);
182182
}
183183

184+
/**
185+
* Set schemas path
186+
*
187+
* @param string $path
188+
* @return $this
189+
*/
190+
public function setSchemasPath($path)
191+
{
192+
$this->_paths['schemas'] = $path;
193+
}
194+
184195
/**
185196
* Process the SAML Response sent by the IdP.
186197
*

lib/Saml2/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function getSchemasPath()
229229
if (isset($this->_paths['schemas'])) {
230230
return $this->_paths['schemas'];
231231
}
232-
return $this->_paths['lib'].'schemas/';
232+
return __DIR__ . '/schemas/';
233233
}
234234

235235
/**

0 commit comments

Comments
 (0)