class YamlConfiguration extends Configuration (View source)

Migration Configuration using YAML files.

Properties

protected array<string, mixed>|null $availableVersions from  Configuration
protected array<string, mixed> $loadedVersions from  Configuration
protected YamlSource $yamlSourceImporter
protected PackageManager $packageManager

Methods

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.

bool
isVersionLoaded(string $version)

Check if the given version has been loaded already.

array<string, mixed>
loadConfiguration(string $version)

Loads a specific version into an array.

void
registerAvailableVersions()

Loads a list of available versions into an array.

void
registerVersionInDirectory(PackageInterface $package, string $directoryName)

No description

Details

array<string, mixed> getAvailableVersions()

Returns an array with all available versions.

Return Value

array<string, mixed>

bool isVersionAvailable(string $version)

If the given version is available, true is returned.

Parameters

string $version

Return Value

bool

array<string, mixed> getMigrationVersion(string|int $version)

Returns the configuration of the given version, if available.

Parameters

string|int $version

Return Value

array<string, mixed>

Exceptions

MigrationException

protected bool isVersionLoaded(string $version)

Check if the given version has been loaded already.

Parameters

string $version

Return Value

bool

protected array<string, mixed> loadConfiguration(string $version)

Loads a specific version into an array.

Parameters

string $version

Return Value

array<string, mixed>

Exceptions

MigrationException

protected void registerAvailableVersions()

Loads a list of available versions into an array.

Return Value

void

Exceptions

MigrationException

protected void registerVersionInDirectory(PackageInterface $package, string $directoryName)

No description

Parameters

PackageInterface $package
string $directoryName

Return Value

void

Exceptions

MigrationException