Skip to content

Commit ab06f5f

Browse files
committed
Add setSchemasPath to Auth class. Fix backward compatibility
1 parent 8ac9679 commit ab06f5f

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/Saml2/Auth.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ public function setStrict($value)
206206
$this->_settings->setStrict($value);
207207
}
208208

209+
/**
210+
* Set schemas path
211+
*
212+
* @param string $path
213+
* @return $this
214+
*/
215+
public function setSchemasPath($path)
216+
{
217+
$this->_paths['schemas'] = $path;
218+
}
219+
209220
/**
210221
* Process the SAML Response sent by the IdP.
211222
*

src/Saml2/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function getSchemasPath()
223223
if (isset($this->_paths['schemas'])) {
224224
return $this->_paths['schemas'];
225225
}
226-
return $this->_paths['lib'].'schemas/';
226+
return __DIR__ . '/schemas/';
227227
}
228228

229229
/**

0 commit comments

Comments
 (0)