src/Controller/IndexController.php line 29

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Controller\Traits\SecurityTrait;
  4. use App\Repository\TenantRepository;
  5. use App\Repository\UserRepository;
  6. use App\Services\NotifierService;
  7. use App\Services\TenantService;
  8. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  9. use Symfony\Component\Routing\Annotation\Route;
  10. class IndexController extends AbstractController
  11. {
  12.     use SecurityTrait;
  13.     private $tenant;
  14.     public function __construct(
  15.         TenantService $tenantService
  16.     )
  17.     {
  18.         $this->tenant $tenantService->defineTenant();
  19.     }
  20.     /**
  21.      * @Route("/", name="index")
  22.      */
  23.     public function index()
  24.     {
  25.         return $this->redirectToRoute('user_sign_in');
  26.     }
  27. }