private function getConfigObject()
    {
        if (!isset($this->config)) {
            $config = [];
            $file = $this->appRoot . '/' . $this->cliConfig->get('service.app_config_file');
            if (file_exists($file)) {
                $config = (array) (new YamlParser())->parseFile($file);
            }
            $this->config = new AppConfig($config);
        }

        return $this->config;
    }
private function getConfigObject()
    {
        if (!isset($this->config)) {
            $config = [];
            $file = $this->appRoot . '/' . $this->cliConfig->get('service.app_config_file');
            if (file_exists($file)) {
                $config = (array) (new YamlParser())->parseFile($file);
            }
            $this->config = new AppConfig($config);
        }

        return $this->config;
    }
private function getConfigObject ( ) { if ( ! isset ( $ this -> config ) ) { $ config = [ ] ; $ file = $ this -> appRoot . '/' . $ this -> cliConfig -> get ( 'service.app_config_file' ) ; if ( file_exists ( $ file ) ) { $ config = ( array ) ( new YamlParser ( ) ) -> parseFile ( $ file ) ; } $ this -> config = new AppConfig ( $ config ) ; } return $ this -> config ; }
Get the application's configuration as an object.

@throws \Exception if the configuration file cannot be read
@throws InvalidConfigException if config is invalid

@return AppConfig
Get the application s configuration as an object .