SetupService
Service class helping to manage parts of the setup process (set configuration, create backend user, create a basic site)
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
Table of Contents
Methods
- __construct() : mixed
- createDirectoryStructure() : array<string|int, FlashMessage>
- createSite() : string
- createSiteConfiguration() : mixed
- Creates a site configuration with one language "English" which is the de-facto default language for TYPO3 in general.
- createUser() : void
- Create a backend user with maintainer and admin flag set by default, because the initial user always requires these flags to grant full permissions to the system.
- prepareSystemSettings() : void
- setInstallToolPassword() : bool
- setSiteName() : bool
Methods
__construct()
public
__construct(ConfigurationManager $configurationManager, SiteConfiguration $siteConfiguration, FailsafePackageManager $packageManager) : mixed
Parameters
- $configurationManager : ConfigurationManager
- $siteConfiguration : SiteConfiguration
- $packageManager : FailsafePackageManager
createDirectoryStructure()
public
createDirectoryStructure(WebserverType $webserverType) : array<string|int, FlashMessage>
Parameters
- $webserverType : WebserverType
Return values
array<string|int, FlashMessage>createSite()
public
createSite() : string
Return values
stringcreateSiteConfiguration()
Creates a site configuration with one language "English" which is the de-facto default language for TYPO3 in general.
public
createSiteConfiguration(string $identifier, int $rootPageId, string $siteUrl) : mixed
Parameters
- $identifier : string
- $rootPageId : int
- $siteUrl : string
Tags
createUser()
Create a backend user with maintainer and admin flag set by default, because the initial user always requires these flags to grant full permissions to the system.
public
createUser(string $username, string $password[, string $email = '' ]) : void
Parameters
- $username : string
- $password : string
- $email : string = ''
prepareSystemSettings()
public
prepareSystemSettings([bool $forceOverwrite = false ]) : void
Parameters
- $forceOverwrite : bool = false
Tags
setInstallToolPassword()
public
setInstallToolPassword(string $password) : bool
Parameters
- $password : string
Return values
boolsetSiteName()
public
setSiteName(string $name) : bool
Parameters
- $name : string