UserFrosting API

MigrationLocator implements MigrationLocatorInterface

MigrationLocator Class.

Finds all migrations class in a given sprinkle

Tags
author

Louis Charette

Table of Contents

$locator ResourceLocator
$scheme string
__construct() Class Constructor. mixed
getMigrations() Loop all the available sprinkles and return a list of their migrations. array
getMigrationDetails() Return an array of migration details inclusing the classname and the sprinkle name. string

Properties

Methods

getMigrations()

Loop all the available sprinkles and return a list of their migrations.

public getMigrations( ) : array
Return values
array

A list of all the migration files found for every sprinkle

getMigrationDetails()

Return an array of migration details inclusing the classname and the sprinkle name.

protected getMigrationDetails( $file : Resource ) : string
Parameters
$file : Resource

The migration file

Return values
string

The migration full class path

Search results