<?php

namespace App\Controller;

use App\Container;
use App\Router\Request\IRequest;
use App\Router\Response\Response;
use Shared\Attributes\Route;
use Twig\Environment;
use Data\Core\Preferences;
use Shared\Log;

class SocialController extends BaseController
{

    private Environment $twig;
    protected Preferences $preference;

    public function __construct()
    {
       session_start();
       $this->preference = new Preferences();
    }


    #[Route(path: '/mail', name: 'mail', methods: ['GET'])]
    public function mail(): Response
    {
        return $this->render('./page/mail.html.twig',[
            'css' => $this->preference->getCookie(),
            'pp' => "test2",
            'user' => "Doe",
            'role' => "Athlète",
            'friendship' => [],
            'analyzes' => [],
            'mails' => [],
            'users' => [],
            'infoUser' => [],
            'exos' => [],
            'member' => []
        ]);
    }

    
}