A project management app derived from Mind-Vision-Code
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

28 行
615B

  1. <?php
  2. declare(strict_types=1);
  3. spl_autoload_register(static function (string $class): void {
  4. $prefixes = [
  5. 'App\\' => __DIR__ . '/app/',
  6. 'Core\\' => __DIR__ . '/core/',
  7. ];
  8. foreach ($prefixes as $prefix => $baseDir) {
  9. if (!str_starts_with($class, $prefix)) {
  10. continue;
  11. }
  12. $relative = substr($class, strlen($prefix));
  13. $file = $baseDir . str_replace('\\', DIRECTORY_SEPARATOR, $relative) . '.php';
  14. if (is_file($file)) {
  15. require_once $file;
  16. }
  17. return;
  18. }
  19. });
  20. require_once __DIR__ . '/core/helpers.php';

Powered by TurnKey Linux.