migrations/Doctrine/Version000900.php
private function askDefaultLocale(): string
    {
        $io = new SymfonyStyle(new ArgvInput(), new ConsoleOutput());

        return $io->ask(
            'Please input the default locale for existing layouts',
            '',
            static function (string $locale): string {
                if (!Locales::exists($locale)) {
                    throw new RuntimeException('Specified locale is not valid');
                }

                return $locale;
            }
        );
    }
private function askDefaultLocale(): string
    {
        $io = new SymfonyStyle(new ArgvInput(), new ConsoleOutput());

        return $io->ask(
            'Please input the default locale for existing layouts',
            '',
            static function (string $locale): string {
                if (!Locales::exists($locale)) {
                    throw new RuntimeException('Specified locale is not valid');
                }

                return $locale;
            }
        );
    }
private function askDefaultLocale ( ) : string { $ io = new SymfonyStyle ( new ArgvInput ( ) , new ConsoleOutput ( ) ) ; return $ io -> ask ( 'Please input the default locale for existing layouts' , '' , static function ( string $ locale ) : string { if ( ! Locales :: exists ( $ locale ) ) { throw new RuntimeException ( 'Specified locale is not valid' ) ; } return $ locale ; } ) ; }
Asks the user for default layout locale and returns it.
Asks the user for default layout locale and returns it .