JonathanTorres\Construct\Construct::changelog PHP Method

changelog() protected method

Generate CHANGELOG.md file.
protected changelog ( ) : void
return void
    protected function changelog()
    {
        $changelog = $this->file->get(__DIR__ . '/stubs/CHANGELOG.stub');
        $content = str_replace('{creation_date}', (new \DateTime())->format('Y-m-d'), $changelog);
        $this->file->put($this->projectLower . '/' . 'CHANGELOG.md', $content);
        $this->exportIgnores[] = 'CHANGELOG.md';
    }