Library/Config.php
protected function populate()
    {
        if (!file_exists('config.json')) {
            return;
        }

        $config = json_decode(file_get_contents('config.json'), true);
        if (!\is_array($config)) {
            throw new Exception(
                'The config.json file is not valid or there is no Zephir extension initialized in this directory.'
            );
        }

        foreach ($config as $key => $configSection) {
            $this->offsetSet($key, $configSection);
        }
    }
protected function populate()
    {
        if (!file_exists('config.json')) {
            return;
        }

        $config = json_decode(file_get_contents('config.json'), true);
        if (!\is_array($config)) {
            throw new Exception(
                'The config.json file is not valid or there is no Zephir extension initialized in this directory.'
            );
        }

        foreach ($config as $key => $configSection) {
            $this->offsetSet($key, $configSection);
        }
    }
protected function populate ( ) { if ( ! file_exists ( 'config.json' ) ) { return ; } $ config = json_decode ( file_get_contents ( 'config.json' ) , true ) ; if ( ! \ is_array ( $ config ) ) { throw new Exception ( 'The config.json file is not valid or there is no Zephir extension initialized in this directory.' ) ; } foreach ( $ config as $ key => $ configSection ) { $ this -> offsetSet ( $ key , $ configSection ) ; } }
Populate project configuration.

@throws Exception
Populate project configuration .