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

@@ -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'