<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends BaseController
{
private $session;
public function __construct(SessionInterface $session)
{
$this->session = $session;
}
/**
* @Route("/", name="default")
*/
public function default(): Response
{
$this->LogWirte(__CLASS__,__FUNCTION__, __LINE__,-1,"0","start");
$this->LogWirte(__CLASS__,__FUNCTION__, __LINE__,-1,"0","end");
return $this->redirectToRoute('close');
}
/**
* @Route("/close", name="close")
*/
public function close(): Response
{
$this->LogWirte(__CLASS__,__FUNCTION__, __LINE__,-1,"0","start");
$this->LogWirte(__CLASS__,__FUNCTION__, __LINE__,-1,"0","end");
return $this->render('close/index.html.twig');
/*
return $this->render('close/index.html.twig',[
'footerPath' => false,
]);
*/
}
}