The data for each entry will be an array with the key, full path to
the package (index 'path') and a category (the packages subfolder,
index 'category'). The array is indexed by package key.
public static getPackagesData ( string $packagesPath ) : array | ||
$packagesPath | string | |
return | array |
/** * Initialize the manager: read package information and register migrations. * * @return void */ protected function initialize() { if ($this->packagesData !== null) { return; } $this->packagesData = Tools::getPackagesData($this->packagesPath); $this->migrations = array(); foreach ($this->packagesData as $packageKey => $packageData) { $this->registerMigrationFiles(Files::concatenatePaths(array($this->packagesPath, $packageData['category'], $packageKey))); } ksort($this->migrations); }