UpgradeWizardRunCommand extends Command

Upgrade wizard command for running wizards

Internal

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
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

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
int

handlePrerequisites()

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
bool

        
On this page

Search results