You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;+ use Symfony\Component\Templating\EngineInterface;
Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinderInterface removed without replacement
The biggest problem FileLocator interface changed. Now we can't inject anything in FileLocator except $kernel
class FileLocatorFactory
{
/** * @param KernelInterface $kernel A KernelInterface instance * @param null|string $path The path the global resource directory * @param array $paths An array of paths where to look for resources */publicstaticfunctioncreateFileLocator(KernelInterface$kernel, ?string$path, array$paths, array$extraTemplatePaths): FileLocator
{
returnnewFileLocator($kernel, /**$path, array_merge($paths, $extraTemplatePaths)*/);
}
}
Small problems with tests. They can be easily solved except this problem with FileLocator
The text was updated successfully, but these errors were encountered:
Hi, @oldy777. I've started working on sf5 in this PR but it's not a trivial task as they have dropped the built-in support for multiple templating engines. I'll get in touch with the core team.
My plan is to release a stable 4.0 SmartyBundle release this month then have the master branch free for sf5 support work.
@vitorbrandao Hi! Do you have plans to add sf5 support?
I faced some problems trying to adopt it for sf5.
kernel.root_dir
var. Now we havekernel.project_dir
. And default folder is templatesSymfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinderInterface
removed without replacementThe text was updated successfully, but these errors were encountered: