2022-02-12 15:33:38 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Doctrine\Common\Cache;
|
|
|
|
|
|
2025-10-27 12:31:15 -06:00
|
|
|
use Grav\Common\Cache\SymfonyCacheProvider;
|
2022-02-12 15:33:38 +02:00
|
|
|
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Filesystem cache driver (backwards compatibility).
|
|
|
|
|
*/
|
2025-10-27 12:31:15 -06:00
|
|
|
class FilesystemCache extends SymfonyCacheProvider
|
2022-02-12 15:33:38 +02:00
|
|
|
{
|
|
|
|
|
public const EXTENSION = '.doctrinecache.data';
|
|
|
|
|
|
|
|
|
|
/**
|
2025-10-27 12:31:15 -06:00
|
|
|
* @param string $directory
|
|
|
|
|
* @param string $extension
|
|
|
|
|
* @param int $umask
|
2022-02-12 15:33:38 +02:00
|
|
|
*/
|
|
|
|
|
public function __construct($directory, $extension = self::EXTENSION, $umask = 0002)
|
|
|
|
|
{
|
2025-10-27 12:31:15 -06:00
|
|
|
parent::__construct(new FilesystemAdapter('', 0, $directory));
|
2022-02-12 15:33:38 +02:00
|
|
|
}
|
|
|
|
|
}
|