-
Notifications
You must be signed in to change notification settings - Fork 69
Symfony 6 Kernel not reloading Twig files #181
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels