Add configuration for exposing VersionProvider

This commit is contained in:
2026-01-05 15:08:29 +01:00
parent 2fee2cb945
commit fd924da17a
4 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
kind: Feature
body: Display version of chill bundles in application footer
time: 2026-01-05T15:07:41.09639691+01:00
custom:
Issue: ""

3
.gitignore vendored
View File

@@ -33,3 +33,6 @@ phpstan.neon
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###
.idea/*
/bin/*

View File

@@ -9,6 +9,9 @@ twig:
# and adapt it lightly.
#
form_themes: ['@ChillMain/Form/bootstrap5/bootstrap_5_horizontal_layout.html.twig']
globals:
# Expose the VersionProvider service to Twig as a global to have access to chill bundles version
chillBundlesVersion: '@Chill\MainBundle\Service\VersionProvider'
when@dev:
twig:

View File

@@ -22,3 +22,8 @@ services:
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
# provide version of installed chill bundles for display in interface
Chill\MainBundle\Service\VersionProvider:
arguments:
$packageName: 'chill-project/chill-bundles'