cache.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. // phpcs:ignoreFile
  3. use dokuwiki\Cache\CacheParser;
  4. use dokuwiki\Cache\CacheInstructions;
  5. use dokuwiki\Cache\CacheRenderer;
  6. use dokuwiki\Debug\DebugHelper;
  7. /**
  8. * @deprecated since 2019-02-02 use \dokuwiki\Cache\Cache instead!
  9. */
  10. class cache extends \dokuwiki\Cache\Cache
  11. {
  12. public function __construct($key, $ext)
  13. {
  14. DebugHelper::dbgDeprecatedFunction(dokuwiki\Cache\Cache::class);
  15. parent::__construct($key, $ext);
  16. }
  17. }
  18. /**
  19. * @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheParser instead!
  20. */
  21. class cache_parser extends \dokuwiki\Cache\CacheParser
  22. {
  23. public function __construct($id, $file, $mode)
  24. {
  25. DebugHelper::dbgDeprecatedFunction(CacheParser::class);
  26. parent::__construct($id, $file, $mode);
  27. }
  28. }
  29. /**
  30. * @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheRenderer instead!
  31. */
  32. class cache_renderer extends \dokuwiki\Cache\CacheRenderer
  33. {
  34. public function __construct($id, $file, $mode)
  35. {
  36. DebugHelper::dbgDeprecatedFunction(CacheRenderer::class);
  37. parent::__construct($id, $file, $mode);
  38. }
  39. }
  40. /**
  41. * @deprecated since 2019-02-02 use \dokuwiki\Cache\CacheInstructions instead!
  42. */
  43. class cache_instructions extends \dokuwiki\Cache\CacheInstructions
  44. {
  45. public function __construct($id, $file)
  46. {
  47. DebugHelper::dbgDeprecatedFunction(CacheInstructions::class);
  48. parent::__construct($id, $file);
  49. }
  50. }