src/App.php
private function applyConfig(array $config): void
    {
        // override
        if ($this->config != null) {
            $config = Config::merge($config, $this->config->getData());
        }
        $this->config = new Config($config);

        // set/reset logger options
        $loggerOptions = $this->config->get('logger');
        if ($loggerOptions != null) {
            isset($loggerOptions['level']) && $this->logger->setLevel($loggerOptions['level']);
            isset($loggerOptions['directory']) && $this->logger->setDirectory($loggerOptions['directory']);
        }
    }
private function applyConfig(array $config): void
    {
        // override
        if ($this->config != null) {
            $config = Config::merge($config, $this->config->getData());
        }
        $this->config = new Config($config);

        // set/reset logger options
        $loggerOptions = $this->config->get('logger');
        if ($loggerOptions != null) {
            isset($loggerOptions['level']) && $this->logger->setLevel($loggerOptions['level']);
            isset($loggerOptions['directory']) && $this->logger->setDirectory($loggerOptions['directory']);
        }
    }
private function applyConfig ( array $ config ) : void { // override if ( $ this -> config != null ) { $ config = Config :: merge ( $ config , $ this -> config -> getData ( ) ) ; } $ this -> config = new Config ( $ config ) ; // set/reset logger options $ loggerOptions = $ this -> config -> get ( 'logger' ) ; if ( $ loggerOptions != null ) { isset ( $ loggerOptions [ 'level' ] ) && $ this -> logger -> setLevel ( $ loggerOptions [ 'level' ] ) ; isset ( $ loggerOptions [ 'directory' ] ) && $ this -> logger -> setDirectory ( $ loggerOptions [ 'directory' ] ) ; } }
Apply config.
@param  array $config
@return void
Apply config .