feat(Product): Ajoute méthode json pour sérialiser les données du produit.

 feat(analytics): Intègre suivi Umami pour catalogue, contact et produits.

 feat(caddy): Ajoute header Cloudflare et script UTM, améliore config PHP.

 feat(nelmio): Autorise tools-security.esy-web.dev dans CSP.

 feat(template): Ajoute suivi Umami sur pages catalogue, contact et produit.
```
This commit is contained in:
Serreau Jovann
2026-01-21 13:37:26 +01:00
parent a05475e0f3
commit bdf1e69860
10 changed files with 177 additions and 66 deletions

View File

@@ -80,6 +80,15 @@ class Product
return$s->slugify($this->id."-".$this->name);
}
public function json()
{
return json_encode([
'id' => $this->id,
'ref' => $this->ref,
'name' => $this->name,
]);
}
public function getId(): ?int
{
return $this->id;