CodeExplorer getTargetUpgradeFile example
$upgrade =
$changelog->
getDefinition()->
getUpgradeInformation();
if ($upgrade) { $append[] =
$upgrade;
} } if (!\
count($append)) { return $output;
} array_unshift($append,
sprintf('# %s',
$version));
$upgradeFile =
$this->
getTargetUpgradeFile($version);
if (!
$dryRun) { if (!
$this->filesystem->
exists($upgradeFile)) { $this->filesystem->
touch($upgradeFile);
} $content =
file_get_contents($upgradeFile) ?: '';
$posLatestRelease =
strpos($content, '# '
);
$posLatestRelease =
$posLatestRelease ?: 0;
$content =