/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/AssetMapper/Factory/NonCachingSelfCheckingResourceChecker.php
37 строк
1003 B
Adrian Rudnik
[AssetMapper] Fix stale dev asset cache in long-running runtimes for dev asset caches
16 июн 2026, 19:26
16 июн 2026, 19:26
78a173e
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\AssetMapper\Factory; use Symfony\Component\Config\Resource\ResourceInterface; use Symfony\Component\Config\Resource\SelfCheckingResourceInterface; use Symfony\Component\Config\ResourceCheckerInterface; /** * Avoids process-wide freshness memoization for dev asset caches. * * @internal */ final class NonCachingSelfCheckingResourceChecker implements ResourceCheckerInterface { public function supports(ResourceInterface $metadata): bool { return $metadata instanceof SelfCheckingResourceInterface; } /** * @param SelfCheckingResourceInterface $resource */ public function isFresh(ResourceInterface $resource, int $timestamp): bool { return $resource->isFresh($timestamp); } }