SetupCommand extends Command
CLI command for setting up TYPO3 via CLI
Table of Contents
Properties
- $connectionLabels : array<string|int, mixed>
Methods
- __construct() : mixed
- configure() : mixed
- execute() : int
- Runs the installation / setup process
- getAdminEmailAddress() : string
- getAdminUserName() : string
- getAdminUserPassword() : string|null
- getConnectionDetails() : array<string|int, mixed>
- getFallbackValueEnvOrOption() : string|false
- Get a value from 1. environment variable 2. cli option
- getProjectName() : string
- getServerType() : WebserverType
- getSiteSetup() : string|bool
- selectAndImportDatabase() : int
- writeError() : void
- writeSuccess() : void
Properties
$connectionLabels
protected
array<string|int, mixed>
$connectionLabels
= ['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']
Methods
__construct()
public
__construct(string $name, SetupDatabaseService $setupDatabaseService, SetupService $setupService, ConfigurationManager $configurationManager, LateBootService $lateBootService) : mixed
Parameters
- $name : string
- $setupDatabaseService : SetupDatabaseService
- $setupService : SetupService
- $configurationManager : ConfigurationManager
- $lateBootService : LateBootService
configure()
protected
configure() : mixed
execute()
Runs the installation / setup process
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intgetAdminEmailAddress()
protected
getAdminEmailAddress(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
stringgetAdminUserName()
protected
getAdminUserName(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
stringgetAdminUserPassword()
protected
getAdminUserPassword(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string|null
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
string|nullgetConnectionDetails()
protected
getConnectionDetails(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : array<string|int, mixed>
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
array<string|int, mixed>getFallbackValueEnvOrOption()
Get a value from 1. environment variable 2. cli option
protected
getFallbackValueEnvOrOption(InputInterface $input, string $option, string $envVar) : string|false
Parameters
- $input : InputInterface
- $option : string
- $envVar : string
Return values
string|falsegetProjectName()
protected
getProjectName(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
stringgetServerType()
protected
getServerType(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : WebserverType
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
WebserverTypegetSiteSetup()
protected
getSiteSetup(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string|bool
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
Return values
string|boolselectAndImportDatabase()
protected
selectAndImportDatabase(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output, mixed $databaseConnection) : int
Parameters
- $questionHelper : QuestionHelper
- $input : InputInterface
- $output : OutputInterface
- $databaseConnection : mixed
Return values
intwriteError()
protected
writeError(OutputInterface $output, string $message) : void
Parameters
- $output : OutputInterface
- $message : string
writeSuccess()
protected
writeSuccess(OutputInterface $output, string $message) : void
Parameters
- $output : OutputInterface
- $message : string