Skip to content
Snippets Groups Projects
Commit eb1f8990 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding support for getting a new config file from the same directory as the...

Adding support for getting a new config file from the same directory as the current one. Used in example in the login modules that hae their own cofig file in addition to config.php.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@492 44740490-163a-0410-bde0-09ae8108e29a
parent ee1e2e0c
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
/**
* Configuration of SimpleSAMLphp
*
* @author Andreas Åkre Solberg, UNINETT AS. <andreas.solberg@uninett.no>
* @author Andreas Aakre Solberg, UNINETT AS. <andreas.solberg@uninett.no>
* @package simpleSAMLphp
* @version $Id$
*/
......@@ -30,6 +30,11 @@ class SimpleSAML_Configuration {
public static function init($path, $instancename = 'simplesaml', $configfilename = 'config.php') {
self::$instance[$instancename] = new SimpleSAML_Configuration($path, $configfilename);
}
public function copyFromBase($instancename, $filename) {
self::$instance[$instancename] = new SimpleSAML_Configuration($this->configpath, $filename);
return self::$instance[$instancename];
}
private function loadConfig() {
$filename = $this->configpath . '/' . $this->configfilename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment