add table for displaying dir content

This commit is contained in:
2024-12-04 19:39:37 +01:00
parent 1ec2ed1d00
commit e70c6db10f
19 changed files with 1122 additions and 5 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace App\Controller;
use App\Service\FileSystemService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class HomeController extends AbstractController
{
#[Route(path: '/', name: 'app_home', methods: Request::METHOD_GET)]
public function __invoke(
FileSystemService $fileSystemService
): Response
{
return $this->render('home.html.twig', ['content' => $fileSystemService->getDirs()]);
}
}