public function loadConfigDir($dir, $env = null)
    {
        !$env && $env = $this->name;
        $config = $this->getFileConfig($dir . '/config.php');
        $envConfig = $this->getFileConfig($dir . '/config-' . $env . '.php');
        $config = array_replace_recursive($config, $envConfig);
        $this->wei->setConfig($config);
        return $this;
    }
public function loadConfigDir($dir, $env = null)
    {
        !$env && $env = $this->name;
        $config = $this->getFileConfig($dir . '/config.php');
        $envConfig = $this->getFileConfig($dir . '/config-' . $env . '.php');
        $config = array_replace_recursive($config, $envConfig);
        $this->wei->setConfig($config);
        return $this;
    }
public function loadConfigDir ( $ dir , $ env = null ) { ! $ env && $ env = $ this -> name ; $ config = $ this -> getFileConfig ( $ dir . '/config.php' ) ; $ envConfig = $ this -> getFileConfig ( $ dir . '/config-' . $ env . '.php' ) ; $ config = array_replace_recursive ( $ config , $ envConfig ) ; $ this -> wei -> setConfig ( $ config ) ; return $ this ; }
Loads two config files in specified directory to service container

@param string $dir The config directory
@param string $env
@return $this
Loads two config files in specified directory to service container