app.php 862 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<walkor@workerman.net>
  10. * @copyright walkor<walkor@workerman.net>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. use support\Request;
  15. return [
  16. 'language' => 'zh_CN',
  17. 'debug' => getenv('APP_DEBUG'),
  18. 'error_reporting' => E_ALL,
  19. 'default_timezone' => 'Asia/Shanghai',
  20. 'request_class' => Request::class,
  21. 'public_path' => base_path() . DIRECTORY_SEPARATOR . 'public',
  22. 'runtime_path' => base_path(false) . DIRECTORY_SEPARATOR . 'runtime',
  23. 'controller_suffix' => 'Controller',
  24. 'controller_reuse' => false,
  25. ];