interface MigrationFinder (View source)

The MigrationFinder interface defines the interface used for finding migrations in a given directory and namespace.

Methods

string[]
findMigrations(string $directory, string|null $namespace = null)

No description

Details

string[] findMigrations(string $directory, string|null $namespace = null)

Parameters

string $directory The directory which the finder should search
string|null $namespace If not null only classes in this namespace will be returned

Return Value

string[]