class Installer (View source)

Constants

DEFAULT_STARTING_POINT

The default starting point handle.

Properties

protected Application $application

The application instance.

protected InstallerOptions $options

The options to be used by the installer.

Methods

__construct(Application $application, InstallerOptions $options)

Initialize the instance.

getOptions()

Get the options to be used by the installer.

$this
setOptions(InstallerOptions $value)

Set the options to be used by the installer.

checkOptions()

No description

array|null
checkConnection(DateTimeZone $serverTimeZone = null)

Check if the database connection is correctly configured.

getStartingPoint(bool $fallbackToDefault)

Get the StartingPointPackage instance.

checkCanonicalUrls()

Check that the canonical URLs are well formatted.

Details

__construct(Application $application, InstallerOptions $options)

Initialize the instance.

Parameters

Application $application

the application instance

InstallerOptions $options

the options to be used by the installer

InstallerOptions getOptions()

Get the options to be used by the installer.

Return Value

InstallerOptions

$this setOptions(InstallerOptions $value)

Set the options to be used by the installer.

Parameters

InstallerOptions $value

Return Value

$this

ErrorList checkOptions()

No description

Return Value

ErrorList

private array|null getDefaultConnectionConfiguration()

No description

Return Value

array|null

protected checkConnection(DateTimeZone $serverTimeZone = null)

Check if the database connection is correctly configured.

Parameters

DateTimeZone $serverTimeZone

The PHP time zone that should be compatible with the connection

Exceptions

UserMessageException

StartingPointPackage getStartingPoint(bool $fallbackToDefault)

Get the StartingPointPackage instance.

Parameters

bool $fallbackToDefault

Fallback to the default one if the starting point handle is not defined?

Return Value

StartingPointPackage

Exceptions

UserMessageException

protected checkCanonicalUrls()

Check that the canonical URLs are well formatted.