N98\Magento\Application\ConfigurationLoader::loadUserConfig PHP Method

loadUserConfig() public method

Check if there is a user config file. ~/.n98-magerun.yaml
public loadUserConfig ( array $config, string $magentoRootFolder = null ) : array
$config array
$magentoRootFolder string [optional]
return array
    public function loadUserConfig(array $config, $magentoRootFolder = null)
    {
        if (null === $this->_userConfig) {
            $this->_userConfig = array();
            $locator = new ConfigLocator($this->_customConfigFilename, $magentoRootFolder);
            if ($userConfigFile = $locator->getUserConfigFile()) {
                $this->_userConfig = $userConfigFile->toArray();
            }
        }
        $config = ArrayFunctions::mergeArrays($config, $this->_userConfig);
        return $config;
    }