app.php 388 B

12345678910111213141516171819
  1. <?php
  2. declare(strict_types=1);
  3. $localPath = __DIR__ . '/app.local.php';
  4. if (is_file($localPath)) {
  5. /** @var array<string, mixed> $config */
  6. $config = require $localPath;
  7. return $config;
  8. }
  9. $samplePath = __DIR__ . '/app.sample.php';
  10. if (is_file($samplePath)) {
  11. /** @var array<string, mixed> $config */
  12. $config = require $samplePath;
  13. return $config;
  14. }
  15. return [];