InstallLanguageCommand
class InstallLanguageCommand extends Command (View source)
Constants
RETURN_CODE_ON_FAILURE |
The return code we should return when an exception is thrown while running the command. |
Properties
protected Application|null | $app | ||
protected TranslationsChecker|null | $translationsChecker | ||
protected TranslationsInstaller|null | $translationsInstaller | ||
protected OutputInterface|null | $output | ||
protected bool|null | $shouldClearLocalizationCache |
Methods
configure()
No description
execute(InputInterface $input, OutputInterface $output)
No description
bool
checkCoreFlag(InputInterface $input)
No description
checkPackagesFlag(InputInterface $input)
No description
getTranslationsData(bool $processCore, array $processPackages)
No description
updateLanguages(array $data)
No description
int
addLanguages(array $data, array $localeIDs)
No description
addLanguage(array $data, $localeID)
No description
bool
Details
run(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected Command
addEnvOption()
Add the "env" option to the command options.
protected
configure()
No description
protected
execute(InputInterface $input, OutputInterface $output)
No description
private bool
checkCoreFlag(InputInterface $input)
No description
private Package
checkPackagesFlag(InputInterface $input)
No description
private LocaleStatus[]
getTranslationsData(bool $processCore, array $processPackages)
No description
private
updateLanguages(array $data)
No description
private int
updateLanguagesFor(array $installedOutdated, Package $package = null)
No description
private
addLanguages(array $data, array $localeIDs)
No description
private
addLanguage(array $data, $localeID)
No description
private bool
addLanguageFor(array $availableRemoteStats, $localeID, Package $package = null)
No description