UnderCurrent/app/Controller/BaseController.php
Tim a55d1c3c2e Properly implement the router with config and interfaces
Expand the container with aliases and argument autowiring
2023-08-07 17:51:53 +02:00

16 lines
348 B
PHP

<?php
namespace App\Controller;
use Ardent\Undercurrent\Attribute\Route;
use Ardent\Undercurrent\Http\GenericResponse;
use Ardent\Undercurrent\Http\ResponseInterface;
class BaseController
{
#[Route('/hello')]
public function helloWorld(): ResponseInterface
{
return new GenericResponse('Hello World!');
}
}