<?php
// src/Controller/EntrepriseController.php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
/**
* @Route("/")
*/
class EntrepriseController extends AbstractController
{
private $session;
public function __construct(SessionInterface $session)
{
$this->session = $session;
}
/**
* @Route("/", name="home_first")
*/
public function homeFirstAction()
{
$this->session->set('cart', array());
$domain = '';
return $this->render('entreprise/accueil.html.twig', [
'domain' => $domain
]);
}
/**
* @Route("/{_locale}", name="home")
*/
public function homeAction()
{
//$this->session->set('cart', array());
$domain = '';
return $this->render('entreprise/accueil.html.twig', [
'domain' => $domain
]);
}
/**
* @Route("/{_locale}/contact", name="contact")
*/
public function contactAction()
{
return $this->render('entreprise/contact.html.twig', [
]);
}
}