Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Paths | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Config; |
| 4 | |
| 5 | /** |
| 6 | * Paths |
| 7 | * |
| 8 | * Holds the paths that are used by the system to |
| 9 | * locate the main directories, app, system, etc. |
| 10 | * |
| 11 | * Modifying these allows you to restructure your application, |
| 12 | * share a system folder between multiple applications, and more. |
| 13 | * |
| 14 | * All paths are relative to the project's root folder. |
| 15 | * |
| 16 | * NOTE: This class is required prior to Autoloader instantiation, |
| 17 | * and does not extend BaseConfig. |
| 18 | */ |
| 19 | class Paths |
| 20 | { |
| 21 | /** |
| 22 | * --------------------------------------------------------------- |
| 23 | * SYSTEM FOLDER NAME |
| 24 | * --------------------------------------------------------------- |
| 25 | * |
| 26 | * This must contain the name of your "system" folder. Include |
| 27 | * the path if the folder is not in the same directory as this file. |
| 28 | */ |
| 29 | public string $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system'; |
| 30 | |
| 31 | /** |
| 32 | * --------------------------------------------------------------- |
| 33 | * APPLICATION FOLDER NAME |
| 34 | * --------------------------------------------------------------- |
| 35 | * |
| 36 | * If you want this front controller to use a different "app" |
| 37 | * folder than the default one you can set its name here. The folder |
| 38 | * can also be renamed or relocated anywhere on your server. If |
| 39 | * you do, use a full server path. |
| 40 | * |
| 41 | * @see http://codeigniter.com/user_guide/general/managing_apps.html |
| 42 | */ |
| 43 | public string $appDirectory = __DIR__ . '/..'; |
| 44 | |
| 45 | /** |
| 46 | * --------------------------------------------------------------- |
| 47 | * WRITABLE DIRECTORY NAME |
| 48 | * --------------------------------------------------------------- |
| 49 | * |
| 50 | * This variable must contain the name of your "writable" directory. |
| 51 | * The writable directory allows you to group all directories that |
| 52 | * need write permission to a single place that can be tucked away |
| 53 | * for maximum security, keeping it out of the app and/or |
| 54 | * system directories. |
| 55 | */ |
| 56 | public string $writableDirectory = __DIR__ . '/../../writable'; |
| 57 | |
| 58 | /** |
| 59 | * --------------------------------------------------------------- |
| 60 | * TESTS DIRECTORY NAME |
| 61 | * --------------------------------------------------------------- |
| 62 | * |
| 63 | * This variable must contain the name of your "tests" directory. |
| 64 | */ |
| 65 | public string $testsDirectory = __DIR__ . '/../../tests'; |
| 66 | |
| 67 | /** |
| 68 | * --------------------------------------------------------------- |
| 69 | * VIEW DIRECTORY NAME |
| 70 | * --------------------------------------------------------------- |
| 71 | * |
| 72 | * This variable must contain the name of the directory that |
| 73 | * contains the view files used by your application. By |
| 74 | * default this is in `app/Views`. This value |
| 75 | * is used when no value is provided to `Services::renderer()`. |
| 76 | */ |
| 77 | public string $viewDirectory = __DIR__ . '/../Views'; |
| 78 | |
| 79 | /** |
| 80 | * --------------------------------------------------------------- |
| 81 | * ENVIRONMENT DIRECTORY NAME |
| 82 | * --------------------------------------------------------------- |
| 83 | * |
| 84 | * This variable must contain the name of the directory where |
| 85 | * the .env file is located. |
| 86 | * Please consider security implications when changing this |
| 87 | * value - the directory should not be publicly accessible. |
| 88 | */ |
| 89 | public string $envDirectory = __DIR__ . '/../../'; |
| 90 | } |