/**
* @return Changelog
*/
protected function getChangelog()
{
$changelogPath = $this->environment->getChangelogPath();
if (!$this->environment->hasChangelog() && $this->output->confirm('No CHANGELOG.md exists, create it?')) {
$stub = file_get_contents(__DIR__ . '/../../stubs/CHANGELOG.md');
file_put_contents($changelogPath, $stub);
}
return new Changelog($changelogPath);
}