protected function loadConfiguration($configFile = false)
    {
        if ($configFile === false) {
            return;
        }
        echo "\nLoad configuration";

        $configuration = require $configFile;

        foreach ($configuration as $name => $value) {
            if ($this->module->canSetProperty($name) == true) {
                $this->module->$name = $value;
            } else {
                throw new InvalidConfigException("Invalid configuration. Unknown configuration option '{$name}'");
            }
        }
        $this->module->loadComponents();
    }
protected function loadConfiguration($configFile = false)
    {
        if ($configFile === false) {
            return;
        }
        echo "\nLoad configuration";

        $configuration = require $configFile;

        foreach ($configuration as $name => $value) {
            if ($this->module->canSetProperty($name) == true) {
                $this->module->$name = $value;
            } else {
                throw new InvalidConfigException("Invalid configuration. Unknown configuration option '{$name}'");
            }
        }
        $this->module->loadComponents();
    }
protected function loadConfiguration ( $ configFile = false ) { if ( $ configFile === false ) { return ; } echo "\nLoad configuration" ; $ configuration = require $ configFile ; foreach ( $ configuration as $ name => $ value ) { if ( $ this -> module -> canSetProperty ( $ name ) == true ) { $ this -> module -> $ name = $ value ; } else { throw new InvalidConfigException ( "Invalid configuration. Unknown configuration option '{$name}'" ) ; } } $ this -> module -> loadComponents ( ) ; }
Loads and update module default configuration.

@param string|bool $configFile Path to external file configuration.

@throws \yii\base\InvalidConfigException On unkniwn option in configuration file.
Loads and update module default configuration .