Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require alessandro_podo/git-changelog-generatorThen, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php
return [
// ...
AlessandroPodo\GitChangelogGenerator\GitChangelogGenerator::class => ['all' => true],
];# config/packages/git_changelog_generator.yaml
git_changelog_generator:
validateMapping:
ROLE_*':
- <visibility footer>
scopes:
- ...use AlessandroPodo\GitChangelogGenerator\Service\Changelog\Changelog;
#[Route(path: '/changelog')]
public function change(
Changelog $changelog,
): Response {
return $this->render('changelog/index.html.twig', ['content'=> $changelog->render()]);
}# extend base Template
{% block body %}
{{ content|raw }}
{% endblock %}# Dateiname kann unten den Optionen angepasst werden. Default ist: plannedChangesFile.yml
composer:
-
title: Composer
description: Composer
ready: false
type: refactorDamit werden geplante Änderungen aufgeführt. Ist das File leer, wird angezeigt, dass keine Änderungen geplant sind. Gibt es das File nicht, wird nichts angezeigt
- Wenn im Footer
title:enthalten ist, dann wird dieser genutzt - Wenn im Footer
description:enthalten ist, dann wird dieser genutzt - Wenn im Footer
visibility:/v:enthalten ist, dann wird dieser genutzt, sonst wird der Default aus dem ConfigFile genutzt