| 1 | <?php |
||
| 11 | class LanguageConfigCustomizer implements ConfigCustomizerInterface |
||
| 12 | { |
||
| 13 | public const DEFAULT_LANG = 'DEFAULT'; |
||
| 14 | public const CLI_LANG = 'CLI'; |
||
| 15 | private const EXPECTED_KEYS = [ |
||
| 16 | self::DEFAULT_LANG, |
||
| 17 | self::CLI_LANG, |
||
| 18 | ]; |
||
| 19 | |||
| 20 | private const SUPPORTED_LANGUAGES = ['en', 'es']; |
||
| 21 | |||
| 22 | 3 | public function process(SymfonyStyle $io, CustomizableAppConfig $appConfig): void |
|
| 39 | |||
| 40 | 2 | private function ask(SymfonyStyle $io, string $key) |
|
| 51 | |||
| 52 | 2 | private function chooseLanguage(SymfonyStyle $io, string $message): string |
|
| 56 | } |
||
| 57 |