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

Public Member Functions

 __construct (string $name, private readonly SetupDatabaseService $setupDatabaseService, private readonly SetupService $setupService, private readonly ConfigurationManager $configurationManager, private readonly LateBootService $lateBootService, private readonly FailsafePackageManager $packageManager,)
 

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
 selectAndImportDatabase (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output, mixed $databaseConnection)
 
 getConnectionDetails (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 getServerType (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 getAdminUserName (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 getAdminUserPassword (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 getAdminEmailAddress (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 getProjectName (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 getSiteSetup (QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output)
 
 writeSuccess (OutputInterface $output, string $message)
 
 writeError (OutputInterface $output, string $message)
 
 getFallbackValueEnvOrOption (InputInterface $input, string $option, string $envVar)
 

Protected Attributes

array $connectionLabels
 

Detailed Description

CLI command for setting up TYPO3 via CLI

Definition at line 45 of file SetupCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Command\SetupCommand::__construct ( string  $name,
private readonly SetupDatabaseService  $setupDatabaseService,
private readonly SetupService  $setupService,
private readonly ConfigurationManager  $configurationManager,
private readonly LateBootService  $lateBootService,
private readonly FailsafePackageManager  $packageManager 
)

Definition at line 56 of file SetupCommand.php.

Member Function Documentation

◆ configure()

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

Definition at line 67 of file SetupCommand.php.

◆ execute()

TYPO3\CMS\Install\Command\SetupCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Runs the installation / setup process

Definition at line 202 of file SetupCommand.php.

◆ getAdminEmailAddress()

TYPO3\CMS\Install\Command\SetupCommand::getAdminEmailAddress ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 585 of file SetupCommand.php.

◆ getAdminUserName()

TYPO3\CMS\Install\Command\SetupCommand::getAdminUserName ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 521 of file SetupCommand.php.

◆ getAdminUserPassword()

TYPO3\CMS\Install\Command\SetupCommand::getAdminUserPassword ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 549 of file SetupCommand.php.

◆ getConnectionDetails()

TYPO3\CMS\Install\Command\SetupCommand::getConnectionDetails ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 368 of file SetupCommand.php.

◆ getFallbackValueEnvOrOption()

TYPO3\CMS\Install\Command\SetupCommand::getFallbackValueEnvOrOption ( InputInterface  $input,
string  $option,
string  $envVar 
)
protected

Get a value from

  1. ‪environment variable
  2. ‪cli option

Definition at line 666 of file SetupCommand.php.

◆ getProjectName()

TYPO3\CMS\Install\Command\SetupCommand::getProjectName ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 609 of file SetupCommand.php.

◆ getServerType()

TYPO3\CMS\Install\Command\SetupCommand::getServerType ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 499 of file SetupCommand.php.

◆ getSiteSetup()

TYPO3\CMS\Install\Command\SetupCommand::getSiteSetup ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output 
)
protected

Definition at line 626 of file SetupCommand.php.

◆ selectAndImportDatabase()

TYPO3\CMS\Install\Command\SetupCommand::selectAndImportDatabase ( QuestionHelper  $questionHelper,
InputInterface  $input,
OutputInterface  $output,
mixed  $databaseConnection 
)
protected

Definition at line 267 of file SetupCommand.php.

◆ writeError()

TYPO3\CMS\Install\Command\SetupCommand::writeError ( OutputInterface  $output,
string  $message 
)
protected

Definition at line 656 of file SetupCommand.php.

◆ writeSuccess()

TYPO3\CMS\Install\Command\SetupCommand::writeSuccess ( OutputInterface  $output,
string  $message 
)
protected

Definition at line 651 of file SetupCommand.php.

Member Data Documentation

◆ $connectionLabels

array TYPO3\CMS\Install\Command\SetupCommand::$connectionLabels
protected
Initial value:
= [
'mysqli' => '[MySQLi] Manually configured MySQL TCP/IP connection',
'mysqliSocket' => '[MySQLi] Manually configured MySQL socket connection',
'pdoMysql' => '[PDO] Manually configured MySQL TCP/IP connection',
'pdoMysqlSocket' => '[PDO] Manually configured MySQL socket connection',
'postgres' => 'Manually configured PostgreSQL connection',
'sqlite' => 'Manually configured SQLite connection',
]

Definition at line 47 of file SetupCommand.php.