Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+4 -13
View File
@@ -12,7 +12,6 @@
namespace Symfony\Component\Templating\Loader;
use Symfony\Component\Templating\Storage\FileStorage;
use Symfony\Component\Templating\Storage\Storage;
use Symfony\Component\Templating\TemplateReferenceInterface;
/**
@@ -30,19 +29,16 @@ class CacheLoader extends Loader
protected $dir;
/**
* @param LoaderInterface $loader A Loader instance
* @param string $dir The directory where to store the cache files
* @param string $dir The directory where to store the cache files
*/
public function __construct(LoaderInterface $loader, $dir)
public function __construct(LoaderInterface $loader, string $dir)
{
$this->loader = $loader;
$this->dir = $dir;
}
/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* {@inheritdoc}
*/
public function load(TemplateReferenceInterface $template)
{
@@ -79,12 +75,7 @@ class CacheLoader extends Loader
}
/**
* Returns true if the template is still fresh.
*
* @param TemplateReferenceInterface $template A template
* @param int $time The last modification time of the cached template (timestamp)
*
* @return bool
* {@inheritdoc}
*/
public function isFresh(TemplateReferenceInterface $template, $time)
{