src/Controller/RootController.php line 13
<?php
namespace App\Controller;
use App\RepositoryManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class RootController extends AbstractController
{
#[Route('/', name: 'root')]
public function root(RepositoryManager $repositoryManager): Response
{
return $this->render('root/root.html.twig', [
'player_repository' => $repositoryManager->repository('player'),
]);
}
#[Route('/examples/widget.html')]
public function redirects(): Response
{
return $this->redirectToRoute('root');
}
}