src/Run/Commands/ConfigTrait.php
protected function getConfigPath(InputInterface $input)
    {
        $configOption = $input->getOption('app-config');
        if ($configOption && !file_exists($configOption)) {
            throw new \Exception(sprintf('Config file not found: "%s"', $configOption));
        }
        $possiblePaths = [
            $configOption,
            $this->confDir,
            sprintf('%s/%s', dirname($GLOBALS['argv'][0]), $this->confDir)
        ];

        foreach ($possiblePaths as $path) {
            if (file_exists($path) && is_dir($path)) {
                return realpath($path);
            }
        }
        return '';
    }
protected function getConfigPath(InputInterface $input)
    {
        $configOption = $input->getOption('app-config');
        if ($configOption && !file_exists($configOption)) {
            throw new \Exception(sprintf('Config file not found: "%s"', $configOption));
        }
        $possiblePaths = [
            $configOption,
            $this->confDir,
            sprintf('%s/%s', dirname($GLOBALS['argv'][0]), $this->confDir)
        ];

        foreach ($possiblePaths as $path) {
            if (file_exists($path) && is_dir($path)) {
                return realpath($path);
            }
        }
        return '';
    }
Get path of config file
@param InputInterface $input
@return string
@throws \Exception