getUser(); return $this->render('index/index.html.twig', [ 'active_downloads' => $this->getUser()->getActiveDownloads(), 'recent_downloads' => $this->getUser()->getDownloads(), 'popular_movies' => $this->tmdb->popularMovies(1, 6), 'popular_tvshows' => $this->tmdb->popularTvShows(1, 6), ]); } #[Route('/email')] public function sendEmail(MailerInterface $mailer): Response { $email = (new Email()) ->to('brock@caldwell.digital') ->subject('Time for Symfony Mailer!') ->text('Sending emails is fun again!') ->html('

See Twig integration for better HTML integration!

'); $mailer->send($email); return $this->json([ 'success' => true, 'message' => 'Email sent!' ]); } #[Route('/test')] public function monitorTvShow(): Response { $this->monitorTvShowHandler->handle(new MonitorTvShowCommand(96)); return $this->json([ 'Success' => 'Monitor added' ]); } }