AliasResolver
class AliasResolver (View source)
The AliasResolver class is responsible for resolving aliases like first, current, etc. to the actual version number.
Constants
ALIAS_FIRST |
|
ALIAS_CURRENT |
|
ALIAS_PREV |
|
ALIAS_NEXT |
|
ALIAS_LATEST |
|
Methods
resolveVersionAlias(string $alias)
Returns the version number from an alias.
Details
at line 26
__construct(MigrationRepository $migrationRepository)
at line 44
resolveVersionAlias(string $alias)
Returns the version number from an alias.
Supported aliases are:
- first: The very first version before any migrations have been run.
- current: The current version.
- prev: The version prior to the current version.
- next: The version following the current version.
- latest: The latest available version.
If an existing version number is specified, it is returned verbatimly.