First working version with non working routes

This commit is contained in:
Tim
2023-07-28 16:14:55 +02:00
commit 503d8c524a
12 changed files with 288 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php
namespace App\Controller;
use Ardent\Undercurrent\Attribute\Route;
class BaseController
{
#[Route('/hello')]
public function HelloWorld(): string
{
return 'Hello, World!';
}
}

9
app/Kernel.php Normal file
View File

@ -0,0 +1,9 @@
<?php
namespace App;
use Ardent\Undercurrent\Kernel\BaseKernel;
class Kernel extends BaseKernel
{
}

9
app/public/index.php Normal file
View File

@ -0,0 +1,9 @@
<?php
use App\Kernel;
require_once dirname(__DIR__).'/../vendor/autoload.php';
$kernel = new Kernel();
$kernel();