<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use App\Model\Core;
use App\Model\User;
use App\Model\Storage;
class FrontController extends Controller
{
public function index(Request $request)
{
$em = $this->getDoctrine()->getManager();
Core::init($em, $request, $this->get('twig'));
//Storage::getMarketingSources();
$response = $this->render(Core::$page->getPageTplFile(), array('core' => new Core()));
$response->headers->setCookie(Core::$user->getCookieIdentifier());
return $response;
}
}