Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 6 Kernel not reloading Twig files #181

Open
Ordepsousa opened this issue Jan 28, 2022 · 0 comments
Open

Symfony 6 Kernel not reloading Twig files #181

Ordepsousa opened this issue Jan 28, 2022 · 0 comments

Comments

@Ordepsousa
Copy link

I'm having problems with twig files. The workers are not restarted after any twig file changes.

Regarding this piece of code inside Symfony Bootstrap

//Symfony\Bundle\TwigBundle\Loader\FilesystemLoader
//->Twig_Loader_Filesystem
if ($this->debug && $container->has('twig.loader')) {
    $twigLoader = $container->get('twig.loader');
    Utils::bindAndCall(function () use ($twigLoader) {
        foreach ($twigLoader->cache as $path) {
            register_file($path);
        }
    }, $twigLoader);
}

I am using symfony 6 and i can't find any "Symfony\Bundle\TwigBundle\Loader\FilesystemLoader" class or "twig.loader" service inside the container, so probably it was deprecated and removed and it will never call register_file on twig files.

Anyone else having this problem?
I'm trying to find the new class responsible for loading/caching twig files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant