Files
Grav/system/src/Doctrine/Common/Cache/FilesystemCache.php
Andy Miller a1fe19f465 replace doctrine/cache with symfony/cache
Signed-off-by: Andy Miller <rhuk@mac.com>
2025-10-27 12:31:15 -06:00

25 lines
591 B
PHP

<?php
namespace Doctrine\Common\Cache;
use Grav\Common\Cache\SymfonyCacheProvider;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
/**
* Filesystem cache driver (backwards compatibility).
*/
class FilesystemCache extends SymfonyCacheProvider
{
public const EXTENSION = '.doctrinecache.data';
/**
* @param string $directory
* @param string $extension
* @param int $umask
*/
public function __construct($directory, $extension = self::EXTENSION, $umask = 0002)
{
parent::__construct(new FilesystemAdapter('', 0, $directory));
}
}