Paths.php 2.8 KB

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