Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 760 Bytes

File metadata and controls

21 lines (15 loc) · 760 Bytes

Changelog functionality

Generell

Often I want to add a changelog or a version to my website. I use the version from the composer.json file and the Changelog from the Changelog.md file. With this bundle I realized this with a VersionService and Controller.

Controller

To use the Controller, you have to import the routes of this bundle in your application:

# config/routes/tdc_toolbox.yaml

tdc_toolbox_routes:
    resource: "@TdcToolboxBundle/config/routes.php"
    type: php
    prefix: /toolbox

VersionService

The VersionService is used to serve the version and the changelog in a cached way.