Skip to content

Commit 9b12abe

Browse files
committed
Add phpdocs with deprecated
Needed for IDE and linter support.
1 parent c732bfa commit 9b12abe

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

system/defines.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,61 @@
7171
define('CACHE_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_CACHE_PATH) ? GRAV_ROOT . '/' : '') . GRAV_CACHE_PATH . '/');
7272

7373
// DEPRECATED: Do not use!
74+
/**
75+
* @deprecated
76+
*/
7477
define('CACHE_PATH', GRAV_CACHE_PATH . DS);
78+
/**
79+
* @deprecated
80+
*/
7581
define('USER_PATH', GRAV_USER_PATH . DS);
82+
/**
83+
* @deprecated
84+
*/
7685
define('ROOT_DIR', GRAV_ROOT . DS);
86+
/**
87+
* @deprecated
88+
*/
7789
define('ASSETS_DIR', GRAV_WEBROOT . '/assets/');
90+
/**
91+
* @deprecated
92+
*/
7893
define('IMAGES_DIR', GRAV_WEBROOT . '/images/');
94+
/**
95+
* @deprecated
96+
*/
7997
define('ACCOUNTS_DIR', USER_DIR . 'accounts/');
98+
/**
99+
* @deprecated
100+
*/
80101
define('PAGES_DIR', USER_DIR . 'pages/');
102+
/**
103+
* @deprecated
104+
*/
81105
define('DATA_DIR', USER_DIR . 'data/');
106+
/**
107+
* @deprecated
108+
*/
82109
define('PLUGINS_DIR', USER_DIR . 'plugins/');
110+
/**
111+
* @deprecated
112+
*/
83113
define('THEMES_DIR', USER_DIR . 'themes/');
114+
/**
115+
* @deprecated
116+
*/
84117
define('SYSTEM_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_SYSTEM_PATH) ? GRAV_ROOT . '/' : '') . GRAV_SYSTEM_PATH . '/');
118+
/**
119+
* @deprecated
120+
*/
85121
define('LIB_DIR', SYSTEM_DIR . 'src/');
122+
/**
123+
* @deprecated
124+
*/
86125
define('VENDOR_DIR', GRAV_ROOT . '/vendor/');
126+
/**
127+
* @deprecated
128+
*/
87129
define('LOG_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_LOG_PATH) ? GRAV_ROOT . '/' : '') . GRAV_LOG_PATH . '/');
88130
// END DEPRECATED
89131

0 commit comments

Comments
 (0)