bootstrap.php 950 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Symfony\Component\Dotenv\Dotenv;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Test Entry File for Alibaba Cloud
  6. |--------------------------------------------------------------------------
  7. |
  8. | This file will be automatically loaded.
  9. |
  10. */
  11. error_reporting(E_ALL);
  12. ini_set('display_errors', '1');
  13. if (!ini_get('date.timezone')) {
  14. date_default_timezone_set('GMT');
  15. }
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Register The Auto Loader
  19. |--------------------------------------------------------------------------
  20. |
  21. | We'll simply require it into the script here so that we don't have to
  22. | worry about manual loading any of our classes later on.
  23. |
  24. */
  25. require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
  26. $env = dirname(__DIR__) . DIRECTORY_SEPARATOR . '.env';
  27. if (is_readable($env)) {
  28. (new Dotenv())->load($env);
  29. }