Files
dokuwiki/inc/cache.php
Andreas Gohr 7a9c51a02e Imports may not be named like local classes. fixes #4200
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
2024-02-10 16:42:02 +01:00

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);
}
}