10BC0 Problem with injection twig global variables Symfony 2.5 · Issue #12320 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Problem with injection twig global variables Symfony 2.5 #12320

@judgedim

Description

@judgedim

After upgrade from 2.4.10 to 2.5.6 I've got error

Variable "welcome_title" does not exist ...

config.yml

twig:
    globals:
        welcome_title: Welcome!

After investigation I've found difference in the app/cache/dev/appDevDebugProjectContainer.php

2.4.10

... 
$instance->addGlobal('app', $this->get('templating.globals'));
$instance->addGlobal('welcome_title', 'Welcome!');

return $instance;

2.5.x (I've tried few version: 2.5.1, 2.5.4, , 2.5.6)
only

...
$instance->addGlobal('app', $this->get('templating.globals'));

return $instance;

Bug?
Suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0