Property | Type | Description | |
---|---|---|---|
$currentPackageData | array | ..) | |
$eventCallbacks | array | Callbacks to be invoked when an event is triggered | |
$ignoredPackageCategories | array | ||
$migrations | |||
$packagesData | array | ||
$packagesPath | string |
Method | Description | |
---|---|---|
getCurrentPackageKey ( ) : string | ||
getStatus ( string $packageKey = null, string $versionNumber = null ) : array | Returns the migration status for all packages. | |
migrate ( string $packageKey = null, string $versionNumber = null, boolean $force = false ) : void | This iterates over available migrations and applies them to the existing packages if - the package needs the migration - is a clean git working copy | |
on ( string $eventIdentifier, Closure $callback ) | Attaches a new event handler | |
setPackagesPath ( string $packagesPath ) : void | Allows to set the packages path. |
Method | Description | |
---|---|---|
commitMigration ( |
Commit changes done to the package described by $packageData. The migration that was did the changes is given with $versionNumber and $versionPackageKey and will be recorded in the commit message. | |
getMigrations ( string $versionNumber = null ) : |
||
getPackagesData ( string $packageKey = null ) : array | ||
hasMigrationApplied ( |
Whether or not the given $migration has been applied to the current package | |
importMigrationLogFromGitHistory ( boolean $commitChanges = false ) : string | Imports the core migration log from the git history if it has not been imported previously (the "applied-flow-migrations" composer manifest property does not exist) | |
initialize ( ) : void | Initialize the manager: read package information and register migrations. | |
markMigrationApplied ( |
Whether or not the given migration has been applied in the given path | |
migratePackage ( |
Apply the given migration to the package and commit the result. | |
registerMigrationFiles ( string $packagePath ) : void | Look for code migration files in the given package path and register them for further action. | |
shouldPackageBeSkippedByDefault ( ) : boolean | By default we skip "TYPO3.*" and "Neos.*" packages and all packages of the ignored categories (@see ignoredPackageCategories) | |
triggerEvent ( string $eventIdentifier, array $eventData = null ) | Trigger a custom event | |
writeComposerManifest ( ) : void |
protected commitMigration ( |
||
$migration | ||
$commitMessageNotice | string | |
return | string |
protected getMigrations ( string $versionNumber = null ) : |
||
$versionNumber | string | if specified only the migration with the specified version is returned |
return |
protected getPackagesData ( string $packageKey = null ) : array | ||
$packageKey | string | if specified, only the package data for the given key is returned |
return | array | in the format [' |
public getStatus ( string $packageKey = null, string $versionNumber = null ) : array | ||
$packageKey | string | key of the package to migrate, or NULL to migrate all packages |
$versionNumber | string | version of the migration to fetch the status for (e.g. "20120126163610"), or NULL to consider all migrations |
return | array | in the format [ |
protected hasMigrationApplied ( |
||
$migration | ||
return | boolean |
protected importMigrationLogFromGitHistory ( boolean $commitChanges = false ) : string | ||
$commitChanges | boolean | if TRUE the modified composer manifest is committed - if it changed |
return | string |
protected initialize ( ) : void | ||
return | void |
protected markMigrationApplied ( |
||
$migration | ||
return | boolean |
public migrate ( string $packageKey = null, string $versionNumber = null, boolean $force = false ) : void | ||
$packageKey | string | key of the package to migrate, or NULL to migrate all packages |
$versionNumber | string | version of the migration to execute (e.g. "20120126163610"), or NULL to execute all migrations |
$force | boolean | if TRUE migrations will be applied even if the corresponding package is not a git working copy or contains local changes |
return | void |
protected migratePackage ( |
||
$migration | ||
$force | boolean | if TRUE the migration will be applied even if the current package is not a git working copy or contains local changes |
return | void |
protected registerMigrationFiles ( string $packagePath ) : void | ||
$packagePath | string | |
return | void |
public setPackagesPath ( string $packagesPath ) : void | ||
$packagesPath | string | |
return | void |
protected shouldPackageBeSkippedByDefault ( ) : boolean | ||
return | boolean |
protected triggerEvent ( string $eventIdentifier, array $eventData = null ) | ||
$eventIdentifier | string | one of the EVENT_* constants |
$eventData | array | optional arguments to be passed to the handler closure |
protected array $eventCallbacks | ||
return | array |
protected AbstractMigration[],Neos\Flow\Core\Migrations $migrations | ||
return |