‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Command\UpgradeWizardRunCommand Class Reference
Inheritance diagram for TYPO3\CMS\Install\Command\UpgradeWizardRunCommand:

Public Member Functions

 __construct (string $name, private readonly LateBootService $lateBootService, private readonly DatabaseUpgradeWizardsService $databaseUpgradeWizardsService, private readonly SilentConfigurationUpgradeService $configurationUpgradeService)
 
int runAllWizards ()
 

Protected Member Functions

 bootstrap ()
 
 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
 getWizard (string $identifier)
 
 handlePrerequisites (array $instances)
 
 runSingleWizard (UpgradeWizardInterface $instance)
 

Private Attributes

const MAX_SILENT_UPGRADE_TRIES = 100
 
UpgradeWizardsService $upgradeWizardsService
 
OutputInterface Symfony Component Console Style StyleInterface $output
 
InputInterface $input
 

Detailed Description

Upgrade wizard command for running wizards

Definition at line 48 of file UpgradeWizardRunCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::__construct ( string  $name,
private readonly LateBootService  $lateBootService,
private readonly DatabaseUpgradeWizardsService  $databaseUpgradeWizardsService,
private readonly SilentConfigurationUpgradeService  $configurationUpgradeService 
)

Definition at line 61 of file UpgradeWizardRunCommand.php.

Member Function Documentation

◆ bootstrap()

TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::bootstrap ( )
protected

◆ configure()

TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::configure ( )
protected

Configure the command by defining the name, options and arguments

Definition at line 108 of file UpgradeWizardRunCommand.php.

◆ execute()

◆ getWizard()

TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::getWizard ( string  $identifier)
protected

Get Wizard instance by class name and identifier Returns null if wizard is already done

Definition at line 157 of file UpgradeWizardRunCommand.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

Referenced by TYPO3\CMS\Install\Command\UpgradeWizardRunCommand\execute(), and TYPO3\CMS\Install\Command\UpgradeWizardRunCommand\runAllWizards().

◆ handlePrerequisites()

TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::handlePrerequisites ( array  $instances)
protected

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

Parameters
UpgradeWizardInterface[]$instances

Definition at line 194 of file UpgradeWizardRunCommand.php.

Referenced by TYPO3\CMS\Install\Command\UpgradeWizardRunCommand\execute(), and TYPO3\CMS\Install\Command\UpgradeWizardRunCommand\runAllWizards().

◆ runAllWizards()

int TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::runAllWizards ( )

◆ runSingleWizard()

Member Data Documentation

◆ $input

InputInterface TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::$input
private

◆ $output

OutputInterface Symfony Component Console Style StyleInterface TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::$output
private

◆ $upgradeWizardsService

UpgradeWizardsService TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::$upgradeWizardsService
private

Definition at line 51 of file UpgradeWizardRunCommand.php.

◆ MAX_SILENT_UPGRADE_TRIES

const TYPO3\CMS\Install\Command\UpgradeWizardRunCommand::MAX_SILENT_UPGRADE_TRIES = 100
private

Definition at line 50 of file UpgradeWizardRunCommand.php.