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. |
ALLOWASROOT_OPTION |
The name of the CLI option that allows running CLI commands as root without confirmation. |
ALLOWASROOT_ENV |
The name of the environment variable that allows running CLI commands as root without confirmation. |
Properties
protected bool | $canRunAsRoot | Can this command be executed as root? If set to false, the command can be executed if one of these conditions is satisfied:
|
from Command |
protected Application|null | $app | ||
protected TranslationsChecker|null | $translationsChecker | ||
protected TranslationsInstaller|null | $translationsInstaller | ||
protected OutputInterface|null | $output | ||
protected bool|null | $shouldClearLocalizationCache |
Methods
Allow/disallow running this command as root without confirmation.
No description
No description
No description
No description
No description
No description
No description
No description
Details
run(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected
initialize(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected $this
addEnvOption()
Add the "env" option to the command options.
protected $this
setCanRunAsRoot(bool $canRunAsRoot)
Allow/disallow running this command as root without confirmation.
protected bool|null
isRunningAsRoot()
Is the current user root?
protected
confirmRunningAsRoot(InputInterface $input, OutputInterface $output)
No description
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