*/
                  
                  
                      public function index(): Response
                  
                  
                      {
                  
                  
                          return $this->getUser()
                  
                  
                              ? $this->redirect($this->urlGenerator->setController(SmsCrudController::class)->generateUrl())
                  
                  
                              : new JsonResponse('OK')
                  
                  
                          ;
                  
                  
                      }
                  
                  
                
и что тебе здесь не понятно?
Обсуждают сегодня