UpgradeWizardRunCommand extends Command
Upgrade wizard command for running wizards
Table of Contents
Methods
- __construct() : mixed
- runAllWizards() : int
- Get list of registered upgrade wizards.
- bootstrap() : void
- Bootstrap running of upgrade wizard, ensure database is utf-8
- configure() : mixed
- Configure the command by defining the name, options and arguments
- execute() : int
- Update language packs of all active languages for all active extensions
- getWizard() : UpgradeWizardInterface|null
- Get Wizard instance by class name and identifier Returns null if wizard is already done
- handlePrerequisites() : bool
- Handles prerequisites of update wizards, allows a more flexible definition and declaration of dependencies Currently implemented prerequisites include "database needs to be up-to-date" and "referenceIndex needs to be up- to-date" At the moment the install tool automatically displays the database updates when necessary but can't do more prerequisites
- runSingleWizard() : int
Methods
__construct()
public
__construct(string $name, LateBootService $lateBootService, UpgradeWizardsService $upgradeWizardsService) : mixed
Parameters
- $name : string
- $lateBootService : LateBootService
- $upgradeWizardsService : UpgradeWizardsService
runAllWizards()
Get list of registered upgrade wizards.
public
runAllWizards() : int
Return values
int —0 if all wizards were successful, 1 on error
bootstrap()
Bootstrap running of upgrade wizard, ensure database is utf-8
protected
bootstrap() : void
configure()
Configure the command by defining the name, options and arguments
protected
configure() : mixed
execute()
Update language packs of all active languages for all active extensions
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intgetWizard()
Get Wizard instance by class name and identifier Returns null if wizard is already done
protected
getWizard(string $className, string $identifier) : UpgradeWizardInterface|null
Parameters
- $className : string
- $identifier : string
Return values
UpgradeWizardInterface|nullhandlePrerequisites()
Handles prerequisites of update wizards, allows a more flexible definition and declaration of dependencies Currently implemented prerequisites include "database needs to be up-to-date" and "referenceIndex needs to be up- to-date" At the moment the install tool automatically displays the database updates when necessary but can't do more prerequisites
protected
handlePrerequisites(array<string|int, UpgradeWizardInterface> $instances) : bool
Parameters
- $instances : array<string|int, UpgradeWizardInterface>
Return values
boolrunSingleWizard()
protected
runSingleWizard(UpgradeWizardInterface $instance) : int
Parameters
- $instance : UpgradeWizardInterface