<?php
namespace App\Controller;
use App\Controller\Traits\SecurityTrait;
use App\Repository\TenantRepository;
use App\Repository\UserRepository;
use App\Services\NotifierService;
use App\Services\TenantService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class IndexController extends AbstractController
{
use SecurityTrait;
private $tenant;
public function __construct(
TenantService $tenantService
)
{
$this->tenant = $tenantService->defineTenant();
}
/**
* @Route("/", name="index")
*/
public function index()
{
return $this->redirectToRoute('user_sign_in');
}
}