mirror of
https://github.com/VladPolskiy/dokuwiki.git
synced 2025-07-25 15:59:39 +00:00

For compatibility reasons we let our old `cache` class inherit from `dokuwiki\Cache\Cache` but `cache` equals `Cache`. At least on some PHP versions? I did not see any problem on my local machine running PHP 8.2 but the problem was visible on a machine running 8.1.27
59 lines
1.4 KiB
PHP
59 lines
1.4 KiB
PHP
<?php
|
|
// phpcs:ignoreFile
|
|
use dokuwiki\Cache\Cache as NewCache;
|
|
use dokuwiki\Cache\CacheParser;
|
|
use dokuwiki\Cache\CacheInstructions;
|
|
use dokuwiki\Cache\CacheRenderer;
|
|
use dokuwiki\Debug\DebugHelper;
|
|
|
|
/**
|
|
* @deprecated since 2019-02-02 use \dokuwiki\Cache\Cache instead!
|
|
*/
|
|
class cache extends NewCache
|
|
{
|
|
public function __construct($key, $ext)
|
|
{
|
|
DebugHelper::dbgDeprecatedFunction(NewCache::class);
|
|
parent::__construct($key, $ext);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheParser instead!
|
|
*/
|
|
class cache_parser extends CacheParser
|
|
{
|
|
|
|
public function __construct($id, $file, $mode)
|
|
{
|
|
DebugHelper::dbgDeprecatedFunction(CacheParser::class);
|
|
parent::__construct($id, $file, $mode);
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
* @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheRenderer instead!
|
|
*/
|
|
class cache_renderer extends CacheRenderer
|
|
{
|
|
|
|
public function __construct($id, $file, $mode)
|
|
{
|
|
DebugHelper::dbgDeprecatedFunction(CacheRenderer::class);
|
|
parent::__construct($id, $file, $mode);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheInstructions instead!
|
|
*/
|
|
class cache_instructions extends CacheInstructions
|
|
{
|
|
public function __construct($id, $file)
|
|
{
|
|
DebugHelper::dbgDeprecatedFunction(CacheInstructions::class);
|
|
parent::__construct($id, $file);
|
|
}
|
|
}
|