load.environment.php 414 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * This file is included very early. See autoload.files in composer.json and
  4. * https://getcomposer.org/doc/04-schema.md#files
  5. */
  6. use Dotenv\Dotenv;
  7. use Dotenv\Exception\InvalidPathException;
  8. /**
  9. * Load any .env file. See /.env.example.
  10. */
  11. $dotenv = new Dotenv(__DIR__);
  12. try {
  13. $dotenv->load();
  14. }
  15. catch (InvalidPathException $e) {
  16. // Do nothing. Production environments rarely use .env files.
  17. }