abstract class Configuration implements ConfigurationInterface (View source)

Abstract Migration Configuration as a base for different configuration sources.

Properties

protected array $availableVersions
protected array $loadedVersions

Methods

array
getAvailableVersions()

Returns an array with all available versions.

bool
isVersionAvailable(string $version)

If the given version is available, true is returned.

array
getMigrationVersion(string $version)

Returns the configuration of the given version, if available.

bool
isVersionLoaded(string $version)

Check if the given version has been loaded already.

array
loadConfiguration(string $version)

Loads a specific version into an array.

void
registerAvailableVersions()

Loads a list of available versions into an array.

Details

array getAvailableVersions()

Returns an array with all available versions.

Return Value

array

bool isVersionAvailable(string $version)

If the given version is available, true is returned.

Parameters

string $version

Return Value

bool

array getMigrationVersion(string $version)

Returns the configuration of the given version, if available.

Parameters

string $version

Return Value

array

Exceptions

MigrationException

protected bool isVersionLoaded(string $version)

Check if the given version has been loaded already.

Parameters

string $version

Return Value

bool

abstract protected array loadConfiguration(string $version)

Loads a specific version into an array.

Parameters

string $version

Return Value

array

abstract protected void registerAvailableVersions()

Loads a list of available versions into an array.

Return Value

void