<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
/**
* @Route("/", name="app_home")
*/
public function index()
{
if (null === $this->getUser()) {
return $this->redirectToRoute('app_login');
}
return $this->redirectToRoute('dashboard');
}
}