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

execute()

Runs the installation / setup process

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

getAdminEmailAddress()

protected getAdminEmailAddress(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
Return values
string

getAdminUserName()

protected getAdminUserName(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
Return values
string

getAdminUserPassword()

protected getAdminUserPassword(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string|null
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
Return values
string|null

getConnectionDetails()

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

getProjectName()

protected getProjectName(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
Return values
string

getServerType()

protected getServerType(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : WebserverType
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
Return values
WebserverType

getSiteSetup()

protected getSiteSetup(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output) : string|bool
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
Return values
string|bool

selectAndImportDatabase()

protected selectAndImportDatabase(QuestionHelper $questionHelper, InputInterface $input, OutputInterface $output, mixed $databaseConnection) : int
Parameters
$questionHelper : QuestionHelper
$input : InputInterface
$output : OutputInterface
$databaseConnection : mixed
Return values
int

writeError()

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

        
On this page

Search results