This commit is contained in:
MeghdadFadaee committed 2026-09-05 15:54:33 +03:30
commit 8416b02b4f
54 files changed
+4604

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
use App\Application;
require_once __DIR__ . '/autoload.php';
return Application::boot();
+15
View File
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
spl_autoload_register(static function (string $class): void {
$prefix = 'App\\';
if (!str_starts_with($class, $prefix)) {
return;
}
$path = dirname(__DIR__) . '/app/' . str_replace('\\', '/', substr($class, strlen($prefix))) . '.php';
if (is_file($path)) {
require $path;
}
});
require_once dirname(__DIR__) . '/app/Support/helpers.php';