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
- 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) : mixed
Parameters
- $configurationManager : ConfigurationManager
- $siteConfiguration : SiteConfiguration
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