|
67 | 67 | unset($path); |
68 | 68 |
|
69 | 69 | // INTERNAL: Do not use! |
| 70 | +/** |
| 71 | + * @internal |
| 72 | + */ |
70 | 73 | define('USER_DIR', GRAV_WEBROOT . '/' . GRAV_USER_PATH . '/'); |
| 74 | +/** |
| 75 | + * @internal |
| 76 | + */ |
71 | 77 | define('CACHE_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_CACHE_PATH) ? GRAV_ROOT . '/' : '') . GRAV_CACHE_PATH . '/'); |
72 | 78 |
|
73 | 79 | // DEPRECATED: Do not use! |
74 | 80 | /** |
| 81 | + * @internal |
75 | 82 | * @deprecated |
76 | 83 | */ |
77 | 84 | define('CACHE_PATH', GRAV_CACHE_PATH . DS); |
78 | 85 | /** |
| 86 | + * @internal |
79 | 87 | * @deprecated |
80 | 88 | */ |
81 | 89 | define('USER_PATH', GRAV_USER_PATH . DS); |
82 | 90 | /** |
| 91 | + * @internal |
83 | 92 | * @deprecated |
84 | 93 | */ |
85 | 94 | define('ROOT_DIR', GRAV_ROOT . DS); |
86 | 95 | /** |
| 96 | + * @internal |
87 | 97 | * @deprecated |
88 | 98 | */ |
89 | 99 | define('ASSETS_DIR', GRAV_WEBROOT . '/assets/'); |
90 | 100 | /** |
| 101 | + * @internal |
91 | 102 | * @deprecated |
92 | 103 | */ |
93 | 104 | define('IMAGES_DIR', GRAV_WEBROOT . '/images/'); |
94 | 105 | /** |
| 106 | + * @internal |
95 | 107 | * @deprecated |
96 | 108 | */ |
97 | 109 | define('ACCOUNTS_DIR', USER_DIR . 'accounts/'); |
98 | 110 | /** |
| 111 | + * @internal |
99 | 112 | * @deprecated |
100 | 113 | */ |
101 | 114 | define('PAGES_DIR', USER_DIR . 'pages/'); |
102 | 115 | /** |
| 116 | + * @internal |
103 | 117 | * @deprecated |
104 | 118 | */ |
105 | 119 | define('DATA_DIR', USER_DIR . 'data/'); |
106 | 120 | /** |
| 121 | + * @internal |
107 | 122 | * @deprecated |
108 | 123 | */ |
109 | 124 | define('PLUGINS_DIR', USER_DIR . 'plugins/'); |
110 | 125 | /** |
| 126 | + * @internal |
111 | 127 | * @deprecated |
112 | 128 | */ |
113 | 129 | define('THEMES_DIR', USER_DIR . 'themes/'); |
114 | 130 | /** |
| 131 | + * @internal |
115 | 132 | * @deprecated |
116 | 133 | */ |
117 | 134 | define('SYSTEM_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_SYSTEM_PATH) ? GRAV_ROOT . '/' : '') . GRAV_SYSTEM_PATH . '/'); |
118 | 135 | /** |
| 136 | + * @internal |
119 | 137 | * @deprecated |
120 | 138 | */ |
121 | 139 | define('LIB_DIR', SYSTEM_DIR . 'src/'); |
122 | 140 | /** |
| 141 | + * @internal |
123 | 142 | * @deprecated |
124 | 143 | */ |
125 | 144 | define('VENDOR_DIR', GRAV_ROOT . '/vendor/'); |
126 | 145 | /** |
| 146 | + * @internal |
127 | 147 | * @deprecated |
128 | 148 | */ |
129 | 149 | define('LOG_DIR', (!preg_match('`^(/|[a-z]:[\\\/])`ui', GRAV_LOG_PATH) ? GRAV_ROOT . '/' : '') . GRAV_LOG_PATH . '/'); |
|
0 commit comments