Neos\Flow\Core\Migrations\Manager::markMigrationApplied PHP Метод

markMigrationApplied() защищенный Метод

Whether or not the given migration has been applied in the given path
protected markMigrationApplied ( AbstractMigration $migration ) : boolean
$migration AbstractMigration
Результат boolean
    protected function markMigrationApplied(AbstractMigration $migration)
    {
        if (!isset($this->currentPackageData['composerManifest']['extra']['applied-flow-migrations'])) {
            $this->currentPackageData['composerManifest']['extra']['applied-flow-migrations'] = [];
        }
        $this->currentPackageData['composerManifest']['extra']['applied-flow-migrations'][] = $migration->getIdentifier();
        $composerFilePathAndName = Files::concatenatePaths([$this->currentPackageData['path'], 'composer.json']);
        Tools::writeComposerManifest($this->currentPackageData['composerManifest'], $composerFilePathAndName);
    }