Add configuration for exposing VersionProvider
This commit is contained in:
5
.changes/unreleased/Feature-20260105-150741.yaml
Normal file
5
.changes/unreleased/Feature-20260105-150741.yaml
Normal 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
3
.gitignore
vendored
@@ -33,3 +33,6 @@ phpstan.neon
|
||||
.phpunit.result.cache
|
||||
/phpunit.xml
|
||||
###< symfony/phpunit-bridge ###
|
||||
|
||||
.idea/*
|
||||
/bin/*
|
||||
@@ -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:
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user