Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit bec7bbf

Browse files
Minor refactor
1 parent 20226ab commit bec7bbf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Helper/SymfonyConfigPathGuesser.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class SymfonyConfigPathGuesser
2121

2222
public static function guess(string $projectDir, string $stage): string
2323
{
24-
if (is_dir($confifDir = sprintf(self::CONFIG_DIR, $projectDir))) {
25-
return $confifDir.sprintf('/%s/deploy.php', $stage);
24+
if (is_dir($configDir = sprintf(self::CONFIG_DIR, $projectDir))) {
25+
return sprintf('%s/%s/deploy.php', $configDir, $stage);
2626
}
2727

28-
if (is_dir($confifDir = sprintf(self::LEGACY_CONFIG_DIR, $projectDir))) {
29-
return $confifDir.sprintf('/deploy_%s.php', $stage);
28+
if (is_dir($configDir = sprintf(self::LEGACY_CONFIG_DIR, $projectDir))) {
29+
return sprintf('%s/deploy_%s.php', $configDir, $stage);
3030
}
3131

32-
throw new \RuntimeException(sprintf('No default config dir found. Looked for %s and %s.', self::CONFIG_DIR, self::LEGACY_CONFIG_DIR));
32+
throw new \RuntimeException(sprintf('None of the usual Symfony config dirs exist in the application. Create one of these dirs before continuing: "%s" or "%s".', self::CONFIG_DIR, self::LEGACY_CONFIG_DIR));
3333
}
3434
}

0 commit comments

Comments
 (0)