EzCoreExtraBundle icon indicating copy to clipboard operation
EzCoreExtraBundle copied to clipboard

The twig globals variables for a siteaccess not work

Open jbcr opened this issue 5 years ago • 1 comments

The twig global variable is not available on twig template:

lolautruche/ez-core-extra-bundle version 2.2.1 ezsystems/ezpublish-kernel version 6.13.6

Bundle configuration:

ez_core_extra:
    system:
        front_end:
            twig_globals:
                app_name: 'frontend'

Twig template:

App name: {{ app_name }}

Result:

The variable app_name is not defined

jbcr avatar Jun 14 '19 14:06 jbcr

There is probably an issue here:

  • https://github.com/lolautruche/EzCoreExtraBundle/blob/master/DependencyInjection/EzCoreExtraExtension.php#L50
  • https://github.com/lolautruche/EzCoreExtraBundle/blob/master/Resources/config/services.yml#L15-L21

lolautruche avatar Nov 15 '19 10:11 lolautruche