TemplateCacheResolver
final class TemplateCacheResolver (View source)
Resolves the Twig compiled-template cache directory, creating it or falling back to uncached rendering.
Methods
__construct(LoggerInterface $logger)
No description
string|null
resolve(string $configuredPath)
Resolves the compiled-template cache directory, creating it if needed.
Details
__construct(LoggerInterface $logger)
No description
string|null
resolve(string $configuredPath)
Resolves the compiled-template cache directory, creating it if needed.
Returns null when the directory cannot be used - callers then render uncached, so a misconfigured path degrades instead of failing.