✨feature: Initial MVP
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
// phpcs:disable PEAR.Commenting.FileComment,PEAR.Commenting.ClassComment
|
||||
|
||||
/**
|
||||
* Application bootstrap for IronKanban.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
session_start();
|
||||
|
||||
$rootPath = __DIR__;
|
||||
|
||||
require_once $rootPath . '/src/Support/helpers.php';
|
||||
|
||||
spl_autoload_register(
|
||||
static function (string $class) use ($rootPath): void {
|
||||
$prefix = 'IronKanban\\';
|
||||
|
||||
if (!str_starts_with($class, $prefix)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$relativeClass = substr($class, strlen($prefix));
|
||||
$file = $rootPath . '/src/' . str_replace('\\', '/', $relativeClass) . '.php';
|
||||
|
||||
if (is_file($file)) {
|
||||
include_once $file;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
$appConfig = include $rootPath . '/config/app.php';
|
||||
Reference in New Issue
Block a user