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)
{
+3 -14
View File
@@ -11,7 +11,6 @@
namespace Symfony\Component\Templating\Loader;
use Symfony\Component\Templating\Storage\Storage;
use Symfony\Component\Templating\TemplateReferenceInterface;
/**
@@ -24,7 +23,7 @@ class ChainLoader extends Loader
protected $loaders = [];
/**
* @param LoaderInterface[] $loaders An array of loader instances
* @param LoaderInterface[] $loaders
*/
public function __construct(array $loaders = [])
{
@@ -33,18 +32,13 @@ class ChainLoader extends Loader
}
}
/**
* Adds a loader instance.
*/
public function addLoader(LoaderInterface $loader)
{
$this->loaders[] = $loader;
}
/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* {@inheritdoc}
*/
public function load(TemplateReferenceInterface $template)
{
@@ -58,12 +52,7 @@ class ChainLoader 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)
{
+2 -10
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;
/**
@@ -33,9 +32,7 @@ class FilesystemLoader extends Loader
}
/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* {@inheritdoc}
*/
public function load(TemplateReferenceInterface $template)
{
@@ -76,12 +73,7 @@ class FilesystemLoader 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 true if the template is still fresh, false otherwise
* {@inheritdoc}
*/
public function isFresh(TemplateReferenceInterface $template, $time)
{
+2 -3
View File
@@ -24,15 +24,14 @@ interface LoaderInterface
/**
* Loads a template.
*
* @return Storage|bool false if the template cannot be loaded, a Storage instance otherwise
* @return Storage|false false if the template cannot be loaded, a Storage instance otherwise
*/
public function load(TemplateReferenceInterface $template);
/**
* 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)
* @param int $time The last modification time of the cached template (timestamp)
*
* @return bool
*/