Initial commit

This commit is contained in:
2022-11-15 09:23:20 +01:00
commit 22127b8702
13 changed files with 369 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace Silex\Controller;
use Silex\DI\DI;
use Silex\Http\HttpResponse;
class UserController
{
public function index(DI $di): HttpResponse
{
$news = $di->getNewsGateway()->getPaginatedRecentNews();
return new HttpResponse(200, 'home', ['news' => $news]);
}
}