src/Joomlatools/Console/Joomla/Application.php
protected function fetchConfigurationData($file = '', $class = 'JConfig')
    {
        $config = parent::fetchConfigurationData($file, $class);

        // Inject the root user configuration
        if(isset($this->_options['root_user']))
        {
            $root_user = isset($this->_options['root_user']) ? $this->_options['root_user'] : 'root';

            if (is_array($config)) {
                $config['root_user'] = $root_user;
            }
            elseif (is_object($config)) {
                $config->root_user = $root_user;
            }
        }

        return $config;
    }
protected function fetchConfigurationData($file = '', $class = 'JConfig')
    {
        $config = parent::fetchConfigurationData($file, $class);

        // Inject the root user configuration
        if(isset($this->_options['root_user']))
        {
            $root_user = isset($this->_options['root_user']) ? $this->_options['root_user'] : 'root';

            if (is_array($config)) {
                $config['root_user'] = $root_user;
            }
            elseif (is_object($config)) {
                $config->root_user = $root_user;
            }
        }

        return $config;
    }
protected function fetchConfigurationData ( $ file = '' , $ class = 'JConfig' ) { $ config = parent :: fetchConfigurationData ( $ file , $ class ) ; // Inject the root user configuration if ( isset ( $ this -> _options [ 'root_user' ] ) ) { $ root_user = isset ( $ this -> _options [ 'root_user' ] ) ? $ this -> _options [ 'root_user' ] : 'root' ; if ( is_array ( $ config ) ) { $ config [ 'root_user' ] = $ root_user ; } elseif ( is_object ( $ config ) ) { $ config -> root_user = $ root_user ; } } return $ config ; }
Method to load a PHP configuration class file based on convention and return the instantiated data object.  You
will extend this method in child classes to provide configuration data from whatever data source is relevant
for your specific application.
Additionally injects the root_user into the configuration.

@param   string  $file   The path and filename of the configuration file. If not provided, configuration.php
in JPATH_BASE will be used.
@param   string  $class  The class name to instantiate.

@return  mixed   Either an array or object to be loaded into the configuration object.

@since   11.1
Method to load a PHP configuration class file based on convention and return the instantiated data object . You will extend this method in child classes to provide configuration data from whatever data source is relevant for your specific application . Additionally injects the root_user into the configuration .