Bugfix config loading from phar
This commit is contained in:
		@@ -23,7 +23,12 @@ class Configuration
 | 
			
		||||
    {
 | 
			
		||||
        $config = new Configuration();
 | 
			
		||||
 | 
			
		||||
        $yaml = Yaml::parseFile($file);
 | 
			
		||||
        $file = realpath($file);
 | 
			
		||||
        if (!file_exists($file)) {
 | 
			
		||||
            throw new \Exception("Configuration file not found");
 | 
			
		||||
        }
 | 
			
		||||
        $data = file_get_contents($file);
 | 
			
		||||
        $yaml = Yaml::parse($data);
 | 
			
		||||
 | 
			
		||||
        if (isset($yaml['security'])) {
 | 
			
		||||
            $security = $yaml['security'];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user