Restore deprecated constants in boot
This commit is contained in:
parent
1a18220059
commit
41d5c7d4c7
1 changed files with 20 additions and 1 deletions
21
boot.php
21
boot.php
|
@ -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…
Reference in a new issue