MigrationRegistry
final class MigrationRegistry (View source)
Registry of explicitly registered migration class strings.
Registration validates migration identities and establishes deterministic ordering without instantiating migrations.
Methods
__construct(ContainerInterface $container)
register(string $migrationClass)
Registers a migration class without instantiating it.
void
Returns ordered migration identifiers without resolving migration instances.
array
get(string $identifier)
Resolves a registered migration only when it is needed for execution.
Details
register
void
register(string $migrationClass)
Registers a migration class without instantiating it.
identifiers
array
identifiers()
Returns ordered migration identifiers without resolving migration instances.
get
MigrationInterface
get(string $identifier)
Resolves a registered migration only when it is needed for execution.