src/Controller/MainController.php line 12
<?phpnamespace App\Controller;use App\Repository\MetaRepository;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\Routing\Annotation\Route;class MainController extends AbstractController{#[Route('/', name: 'page_home1', requirements: ['_locale' => 'en|ru|hy'], defaults: ['_locale' => 'ru'])]public function index1(){if ($this->getUser()) {return $this->redirectToRoute('app_dashboard');} else {return $this->redirectToRoute('app_login');}}#[Route('/{_locale}', name: 'page_home', requirements: ['_locale' => 'en|ru|hy'], defaults: ['_locale' => 'ru'])]public function index(MetaRepository $metaRepository){if ($this->getUser()) {return $this->redirectToRoute('app_dashboard');} else {return $this->redirectToRoute('app_login');}}}