InvalidMigrationLocatorStub extends MigrationLocator
This stub contain migration which file doesn't exists
Finds all migrations class in a given sprinkle
Table of Contents
$locator | ResourceLocator | |
---|---|---|
$scheme | string | |
getMigrations() | Loop all the available sprinkles and return a list of their migrations. | array |
__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
$locator
protected
ResourceLocator
$locator
$scheme
protected
string
$scheme
= 'migrations://'
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
__construct()
Class Constructor.
public
__construct(
$locator :
ResourceLocator
)
: mixed
Parameters
- $locator : ResourceLocator
The locator services
Return values
mixedgetMigrations()
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