Zepi/Core/Utils/src/Backend/ConfigurationFileBackend.php
public function loadConfiguration()
    {
        if (!file_exists($this->path)) {
            return array();
        }
        
        if (!is_readable($this->path)) {
            throw new Exception('The file "' . $this->path . '" isn\'t readable!');
        }
        
        $content = file_get_contents($this->path);
        $settings = json_decode($content, true);

        if ($settings == false) {
            return array();
        }
        
        return $settings;
    }
public function loadConfiguration()
    {
        if (!file_exists($this->path)) {
            return array();
        }
        
        if (!is_readable($this->path)) {
            throw new Exception('The file "' . $this->path . '" isn\'t readable!');
        }
        
        $content = file_get_contents($this->path);
        $settings = json_decode($content, true);

        if ($settings == false) {
            return array();
        }
        
        return $settings;
    }
public function loadConfiguration ( ) { if ( ! file_exists ( $ this -> path ) ) { return array ( ) ; } if ( ! is_readable ( $ this -> path ) ) { throw new Exception ( 'The file "' . $ this -> path . '" isn\'t readable!' ) ; } $ content = file_get_contents ( $ this -> path ) ; $ settings = json_decode ( $ content , true ) ; if ( $ settings == false ) { return array ( ) ; } return $ settings ; }
Loads the configuration from the file.

@access public
@return array

@throws Zepi\Turbo\Exception The file "$path" isn't readable!
Loads the configuration from the file .