public function locate($workingDir, PackageInterface $package = null)
{
$defaultPath = $workingDir . DIRECTORY_SEPARATOR . self::APP_CONFIG_FILE;
$defaultPath = $this->locateConfigFileWithDistSupport($defaultPath);
if (null !== $package) {
$defaultPath = $this->useConfigPathFromComposer($package, $defaultPath);
}
// Make sure to set the full path when it is declared relative
// This will fix some issues in windows.
if (!$this->filesystem->isAbsolutePath($defaultPath)) {
$defaultPath = $workingDir . DIRECTORY_SEPARATOR . $defaultPath;
}
return $defaultPath;
}