Copied!

MigrationComparator

MigrationComparator.php : 21
Interface

Determines the order migrations are executed in, across every configured migration_directory merged together by {@see CompositeMigrationStorage}. Override the default {@see AlphabeticalMigrationComparator} service to customize ordering — e.g. to always run one directory's migrations before another's.

Methods

publiccompare()

MigrationComparator.php : 23
public compare(Migration $a, Migration $b) : int

Parameters

Name Type Default value Description
$a Migration - -
$b Migration - -

Return values

int