Configuration
abstract class Configuration implements ConfigurationInterface (View source)
Abstract Migration Configuration as a base for different configuration sources.
Properties
| protected array<string, mixed>|null | $availableVersions | ||
| protected array<string, mixed> | $loadedVersions |
Methods
Returns an array with all available versions.
If the given version is available, true is returned.
Returns the configuration of the given version, if available.
Check if the given version has been loaded already.
Loads a specific version into an array.
Loads a list of available versions into an array.
Details
array<string, mixed>
getAvailableVersions()
Returns an array with all available versions.
bool
isVersionAvailable(string $version)
If the given version is available, true is returned.
array<string, mixed>
getMigrationVersion(string|int $version)
Returns the configuration of the given version, if available.
protected bool
isVersionLoaded(string $version)
Check if the given version has been loaded already.
abstract protected array<string, mixed>
loadConfiguration(string $version)
Loads a specific version into an array.
abstract protected void
registerAvailableVersions()
Loads a list of available versions into an array.