SimpleSAML_Configuration::copyFromBase PHP Method

copyFromBase() public method

TODO: remove.
See also: getConfig()
Deprecation: This function is superseeded by the getConfig() function.
public copyFromBase ( string $instancename, string $filename )
$instancename string
$filename string
    public function copyFromBase($instancename, $filename)
    {
        assert('is_string($instancename)');
        assert('is_string($filename)');
        assert('$this->filename !== NULL');
        // check if we already have loaded the given config - return the existing instance if we have
        if (array_key_exists($instancename, self::$instance)) {
            return self::$instance[$instancename];
        }
        $dir = dirname($this->filename);
        self::$instance[$instancename] = self::loadFromFile($dir . '/' . $filename, true);
        return self::$instance[$instancename];
    }