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.

protected Resolver $characterSetCollationResolver

Methods

__construct(Application $application, InstallerOptions $options, Resolver $characterSetCollationResolver)

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.

createConnection()

Create a new Connection instance using the values specified in the options.

getStartingPoint(bool $fallbackToDefault)

Get the StartingPointPackage instance.

checkOptions() deprecated

No description

array|null
setPreferredCharsetCollation(Connection $connection)

No description

reconfigureCharacterSetCollation(Connection $connection, string $characterSet, string $collation)

No description

Details

__construct(Application $application, InstallerOptions $options, Resolver $characterSetCollationResolver)

Initialize the instance.

Parameters

Application $application

the application instance

InstallerOptions $options

the options to be used by the installer

Resolver $characterSetCollationResolver

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

Connection createConnection()

Create a new Connection instance using the values specified in the options.

Return Value

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

checkOptions() deprecated

deprecated Use the OptionsPreconditionInterface preconditions

No description

private array|null getDefaultConnectionConfiguration()

No description

Return Value

array|null

private Connection setPreferredCharsetCollation(Connection $connection)

No description

Parameters

Connection $connection

Return Value

Connection

private Connection reconfigureCharacterSetCollation(Connection $connection, string $characterSet, string $collation)

No description

Parameters

Connection $connection
string $characterSet
string $collation

Return Value

Connection