src/Controller/IndexController.php line 11
<?php
namespace App\Controller;
use App\Controller\Bootstrap\DefaultLayoutController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
class IndexController extends DefaultLayoutController
{
public function index(): Response
{
if($this->getUser()){
return new RedirectResponse($this->generateUrl('dashboard', []));
}
return new RedirectResponse($this->generateUrl('signin', []));
}
}