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);
}