paths.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  10. * @link https://cakephp.org CakePHP(tm) Project
  11. * @since 3.0.0
  12. * @license MIT License (https://opensource.org/licenses/mit-license.php)
  13. */
  14. /**
  15. * Use the DS to separate the directories in other defines
  16. */
  17. if (!defined('DS')) {
  18. define('DS', DIRECTORY_SEPARATOR);
  19. }
  20. /**
  21. * These defines should only be edited if you have cake installed in
  22. * a directory layout other than the way it is distributed.
  23. * When using custom settings be sure to use the DS and do not add a trailing DS.
  24. */
  25. /**
  26. * The full path to the directory which holds "src", WITHOUT a trailing DS.
  27. */
  28. define('ROOT', dirname(__DIR__));
  29. /**
  30. * The actual directory name for the application directory. Normally
  31. * named 'src'.
  32. */
  33. define('APP_DIR', 'src');
  34. /**
  35. * Path to the application's directory.
  36. */
  37. define('APP', ROOT . DS . APP_DIR . DS);
  38. /**
  39. * Path to the config directory.
  40. */
  41. define('CONFIG', ROOT . DS . 'config' . DS);
  42. /**
  43. * File path to the webroot directory.
  44. *
  45. * To derive your webroot from your webserver change this to:
  46. *
  47. * `define('WWW_ROOT', rtrim($_SERVER['DOCUMENT_ROOT'], DS) . DS);`
  48. */
  49. define('WWW_ROOT', ROOT . DS . 'webroot' . DS);
  50. /**
  51. * Path to the tests directory.
  52. */
  53. define('TESTS', ROOT . DS . 'tests' . DS);
  54. /**
  55. * Path to the temporary files directory.
  56. */
  57. define('TMP', ROOT . DS . 'tmp' . DS);
  58. /**
  59. * Path to the logs directory.
  60. */
  61. define('LOGS', ROOT . DS . 'logs' . DS);
  62. /**
  63. * Path to the cache files directory. It can be shared between hosts in a multi-server setup.
  64. */
  65. define('CACHE', TMP . 'cache' . DS);
  66. /**
  67. * Path to the resources directory.
  68. */
  69. define('RESOURCES', ROOT . DS . 'resources' . DS);
  70. /**
  71. * The absolute path to the "cake" directory, WITHOUT a trailing DS.
  72. *
  73. * CakePHP should always be installed with composer, so look there.
  74. */
  75. define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
  76. /**
  77. * Path to the cake directory.
  78. */
  79. define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
  80. define('CAKE', CORE_PATH . 'src' . DS);