<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Entity\Annonces;
use Doctrine\Persistence\ManagerRegistry;
use App\Controller\Fonctions\Fonctions;
class PartageController extends AbstractController
{
#[Route('/partage/{slug}', name: 'app_partage')]
public function index(Request $request, ManagerRegistry $doctrine, Annonces $annonce, $slug): Response
{
$fonction = new Fonctions();
$url = $fonction->FonctionUrl();
return $this->render('partage/index.html.twig', [
'url' => $url,
'slug' => $slug,
]);
}
}