Browse Source

Restore deprecated constants in boot

pull/4549/head
Hypolite Petovan 3 years ago
parent
commit
41d5c7d4c7
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      boot.php

+ 20
- 1
boot.php View File

@ -1,6 +1,6 @@
<?php
/**
* @file_tag_unsave_file boot.php
* @file boot.php
* This file defines some global constants and includes the central App class.
*/
@ -21,6 +21,7 @@ require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'a
use Friendica\App;
use Friendica\Core\Addon;
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
@ -119,6 +120,24 @@ define('LOGGER_DATA', 3);
define('LOGGER_ALL', 4);
/* @}*/
/**
* @name Cache
* @deprecated since version 3.6
* @see Cache
*
* Cache levels
* @{
*/
define('CACHE_MONTH', Cache::MONTH);
define('CACHE_WEEK', Cache::WEEK);
define('CACHE_DAY', Cache::DAY);
define('CACHE_HOUR', Cache::HOUR);
define('CACHE_HALF_HOUR', Cache::HALF_HOUR);
define('CACHE_QUARTER_HOUR', Cache::QUARTER_HOUR);
define('CACHE_FIVE_MINUTES', Cache::FIVE_MINUTES);
define('CACHE_MINUTE', Cache::MINUTE);
/* @}*/
/**
* @name Register
*


Loading…
Cancel
Save