src/Koldy/Config.php
public function loadFrom(string $path): void
    {
        $this->path = $path;

        if (is_file($path)) {
            $this->data = require $path;

            if (!is_array($this->data)) {
                throw new ConfigException("Config loaded from path={$path} is not an array");
            }

            $this->loadedAt = time();
        } else {
            throw new ConfigException('Unable to load config from path=' . $path);
        }
    }
public function loadFrom(string $path): void
    {
        $this->path = $path;

        if (is_file($path)) {
            $this->data = require $path;

            if (!is_array($this->data)) {
                throw new ConfigException("Config loaded from path={$path} is not an array");
            }

            $this->loadedAt = time();
        } else {
            throw new ConfigException('Unable to load config from path=' . $path);
        }
    }
public function loadFrom ( string $ path ) : void { $ this -> path = $ path ; if ( is_file ( $ path ) ) { $ this -> data = require $ path ; if ( ! is_array ( $ this -> data ) ) { throw new ConfigException ( "Config loaded from path={$path} is not an array" ) ; } $ this -> loadedAt = time ( ) ; } else { throw new ConfigException ( 'Unable to load config from path=' . $ path ) ; } }
After config instance is constructed, you should load configuration from file by using this method. Otherwise,
configuration should be set by using set or setData methods.

@param string $path

@throws ConfigException
After config instance is constructed you should load configuration from file by using this method . Otherwise configuration should be set by using set or setData methods .