Skip to content

Commit

Permalink
Add phpdocs with deprecated
Browse files Browse the repository at this point in the history
Needed for IDE and linter support.
  • Loading branch information
Rotzbua committed Feb 27, 2022
1 parent 3dd0cab commit 7ef31fe
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7ef31fe

Please sign in to comment.