From 7ef31fe3bad6e33a1609fed4dad26fe823a4ce6c Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 27 Feb 2022 23:48:15 +0100 Subject: [PATCH] Add phpdocs with deprecated Needed for IDE and linter support. --- system/defines.php | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/system/defines.php b/system/defines.php index 39dd692640..01f7dbb1f2 100644 --- a/system/defines.php +++ b/system/defines.php @@ -71,19 +71,61 @@ define('CACHE_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_CACHE_PATH) ? GRAV_ROOT . '/' : '') . GRAV_CACHE_PATH . '/'); // DEPRECATED: Do not use! +/** + * @deprecated + */ define('CACHE_PATH', GRAV_CACHE_PATH . DS); +/** + * @deprecated + */ define('USER_PATH', GRAV_USER_PATH . DS); +/** + * @deprecated + */ define('ROOT_DIR', GRAV_ROOT . DS); +/** + * @deprecated + */ define('ASSETS_DIR', GRAV_WEBROOT . '/assets/'); +/** + * @deprecated + */ define('IMAGES_DIR', GRAV_WEBROOT . '/images/'); +/** + * @deprecated + */ define('ACCOUNTS_DIR', USER_DIR . 'accounts/'); +/** + * @deprecated + */ define('PAGES_DIR', USER_DIR . 'pages/'); +/** + * @deprecated + */ define('DATA_DIR', USER_DIR . 'data/'); +/** + * @deprecated + */ define('PLUGINS_DIR', USER_DIR . 'plugins/'); +/** + * @deprecated + */ define('THEMES_DIR', USER_DIR . 'themes/'); +/** + * @deprecated + */ define('SYSTEM_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_SYSTEM_PATH) ? GRAV_ROOT . '/' : '') . GRAV_SYSTEM_PATH . '/'); +/** + * @deprecated + */ define('LIB_DIR', SYSTEM_DIR . 'src/'); +/** + * @deprecated + */ define('VENDOR_DIR', GRAV_ROOT . '/vendor/'); +/** + * @deprecated + */ define('LOG_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_LOG_PATH) ? GRAV_ROOT . '/' : '') . GRAV_LOG_PATH . '/'); // END DEPRECATED