chore: lots of changes

This commit is contained in:
2025-05-24 07:09:22 +02:00
parent 77ee769d5e
commit 899227b0a4
178 changed files with 5145 additions and 53 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace App\Application\Website;
use App\Framework\Attributes\Route;
use App\Framework\Http\Request;
use App\Framework\Router\ActionResult;
use App\Framework\Router\ResultType;
class ShowHome
{
#[Route(method: 'GET', path: '/')]
public function __invoke(): ActionResult
{
return new ActionResult(
ResultType::Html,
'test',
['name' => 'Michael','title' => 'HalloWeltTitel'],
);
}
#[Route(method: 'GET', path: '/epk')]
public function impressum(string $test = 'hallo'): ActionResult
{
return new ActionResult(
ResultType::Plain,
'test',
['text' => 'EPK!'],
);
}
}