Add configuration for exposing VersionProvider
This commit is contained in:
@@ -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