Skip to content

Commit

Permalink
Change the priority order of config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed May 22, 2020
1 parent fa31288 commit 8bd2500
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,13 @@ protected function getConfigFilePaths($userConfig)
if (basename(dirname(__DIR__, 3)) == 'vendor') {
$roboAppConfig = dirname(__DIR__, 4) . '/' . basename($userConfig);
}
$configFiles = [$userConfig, $roboAppConfig];
$configFiles = [$roboAppConfig, $userConfig];
if (dirname($userConfig) != '.') {
array_unshift($configFiles, basename($userConfig));
$configFiles[] = basename($userConfig);
}
return $configFiles;
}

/**
* @param null|\Symfony\Component\Console\Input\InputInterface $input
* @param null|\Symfony\Component\Console\Output\OutputInterface $output
Expand Down

0 comments on commit 8bd2500

Please sign in to comment.