Skip to content

Commit

Permalink
Add phpdocs with internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Feb 28, 2022
1 parent 7ef31fe commit c18a557
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,63 +67,83 @@
unset($path);

// INTERNAL: Do not use!
/**
* @internal
*/
define('USER_DIR', GRAV_WEBROOT . '/' . GRAV_USER_PATH . '/');
/**
* @internal
*/
define('CACHE_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_CACHE_PATH) ? GRAV_ROOT . '/' : '') . GRAV_CACHE_PATH . '/');

// DEPRECATED: Do not use!
/**
* @internal
* @deprecated
*/
define('CACHE_PATH', GRAV_CACHE_PATH . DS);
/**
* @internal
* @deprecated
*/
define('USER_PATH', GRAV_USER_PATH . DS);
/**
* @internal
* @deprecated
*/
define('ROOT_DIR', GRAV_ROOT . DS);
/**
* @internal
* @deprecated
*/
define('ASSETS_DIR', GRAV_WEBROOT . '/assets/');
/**
* @internal
* @deprecated
*/
define('IMAGES_DIR', GRAV_WEBROOT . '/images/');
/**
* @internal
* @deprecated
*/
define('ACCOUNTS_DIR', USER_DIR . 'accounts/');
/**
* @internal
* @deprecated
*/
define('PAGES_DIR', USER_DIR . 'pages/');
/**
* @internal
* @deprecated
*/
define('DATA_DIR', USER_DIR . 'data/');
/**
* @internal
* @deprecated
*/
define('PLUGINS_DIR', USER_DIR . 'plugins/');
/**
* @internal
* @deprecated
*/
define('THEMES_DIR', USER_DIR . 'themes/');
/**
* @internal
* @deprecated
*/
define('SYSTEM_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_SYSTEM_PATH) ? GRAV_ROOT . '/' : '') . GRAV_SYSTEM_PATH . '/');
/**
* @internal
* @deprecated
*/
define('LIB_DIR', SYSTEM_DIR . 'src/');
/**
* @internal
* @deprecated
*/
define('VENDOR_DIR', GRAV_ROOT . '/vendor/');
/**
* @internal
* @deprecated
*/
define('LOG_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_LOG_PATH) ? GRAV_ROOT . '/' : '') . GRAV_LOG_PATH . '/');
Expand Down

0 comments on commit c18a557

Please sign in to comment.