public function loadConfigFile($file, $env = null)
    {
        $file = str_replace('%env%', $env ?: $this->name, $file);
        $config = $this->getFileConfig($file);
        if ($config) {
            $this->wei->setConfig($config);
        }
        return $this;
    }
public function loadConfigFile($file, $env = null)
    {
        $file = str_replace('%env%', $env ?: $this->name, $file);
        $config = $this->getFileConfig($file);
        if ($config) {
            $this->wei->setConfig($config);
        }
        return $this;
    }
public function loadConfigFile ( $ file , $ env = null ) { $ file = str_replace ( '%env%' , $ env ? : $ this -> name , $ file ) ; $ config = $ this -> getFileConfig ( $ file ) ; if ( $ config ) { $ this -> wei -> setConfig ( $ config ) ; } return $ this ; }
Loads configs from specified file to service container

@param string $file The config file path
@param string $env The value to replace the %env% placeholder, default to the env name
@return $this
Loads configs from specified file to service container