<?php
namespace App\Controller;
use App\Entity\Ourteam;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class AboutusController extends AbstractController
{
/**
* @Route("/sobre-nos", name="app_aboutus")
*/
public function index(ManagerRegistry $doctrine): Response
{
$ourTeam = $doctrine->getRepository(Ourteam::class)->findAll();
return $this->render('aboutus/index.html.twig', [
'titlePage' => 'Fabios RoadStop - Sobre Nós',
'teams' => $ourTeam
]);
}
}