public function loadConfig($env_file=null)
    {
        $this->configure($this->config_dir . '/configure');
        if ($this->debug) {
            $this->configure($this->config_dir . '/configure-debug');
        }
        $this->loadEnvironment($env_file);
        return $this;
    }
public function loadConfig($env_file=null)
    {
        $this->configure($this->config_dir . '/configure');
        if ($this->debug) {
            $this->configure($this->config_dir . '/configure-debug');
        }
        $this->loadEnvironment($env_file);
        return $this;
    }
public function loadConfig ( $ env_file = null ) { $ this -> configure ( $ this -> config_dir . '/configure' ) ; if ( $ this -> debug ) { $ this -> configure ( $ this -> config_dir . '/configure-debug' ) ; } $ this -> loadEnvironment ( $ env_file ) ; return $ this ; }
loads the main configuration for the application.

@param null|string $env_file
@return $this
loads the main configuration for the application .