First working version with non working routes
This commit is contained in:
14
app/Controller/BaseController.php
Normal file
14
app/Controller/BaseController.php
Normal 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
9
app/Kernel.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Ardent\Undercurrent\Kernel\BaseKernel;
|
||||
|
||||
class Kernel extends BaseKernel
|
||||
{
|
||||
}
|
9
app/public/index.php
Normal file
9
app/public/index.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
|
||||
require_once dirname(__DIR__).'/../vendor/autoload.php';
|
||||
|
||||
$kernel = new Kernel();
|
||||
|
||||
$kernel();
|
Reference in New Issue
Block a user