Doctrine\DBAL\Migrations\Configuration\Configuration::setMigrationsFinder PHP Method

setMigrationsFinder() public method

Set the implementation of the migration finder.
public setMigrationsFinder ( Doctrine\DBAL\Migrations\Finder\MigrationFinderInterface $finder )
$finder Doctrine\DBAL\Migrations\Finder\MigrationFinderInterface The new migration finder
    public function setMigrationsFinder(MigrationFinderInterface $finder)
    {
        if (($this->migrationsAreOrganizedByYear || $this->migrationsAreOrganizedByYearAndMonth) && !$finder instanceof MigrationDeepFinderInterface) {
            throw MigrationException::configurationIncompatibleWithFinder('organize-migrations', $finder);
        }
        $this->migrationFinder = $finder;
    }