Baleen\Migrations\Migration\VersionRepository\MigrationRepositoryInterface¶
-
interface
MigrationRepositoryInterface
¶ In charge of loading Migration files and instantiating them.
-
fetchAll
()¶ Must fetch all versions available to the repository, load them with their migrations, and return them as a Linked collection. It must use a factory (default or supplied by ‘setMigrationFactory()’) to instantiate each of the migrations.
Returns: Linked
-
setMigrationFactory
(FactoryInterface $factory)¶ Use a custom factory to create migrations. Useful to inject migration instances with additional dependencies (e.g. database adapters).
Parameters: - $factory (FactoryInterface) –
-