src/Controller/PageController.php line 15
<?phpnamespace App\Controller;use App\Entity\Package;use Doctrine\ORM\EntityManagerInterface;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\Routing\Annotation\Route;class PageController extends BaseController{#[Route('', name: 'page_index')]public function index(){$packages = $this->entityManager->getRepository(Package::class)->findAll();return $this->render('@web/page/index.html.twig',['packages' => $packages]);}#[Route('/indexes/test-selection', name: 'page_test_selection', methods: ['GET'])]public function page_test_selection(){return $this->render('@web/page/indexes/test-selection.html.twig',[]);}#[Route('/indexes/test-sat-selection', name: 'page_test_sat_selection', methods: ['GET'])]public function page_test_sat_selection(){return $this->render('@web/page/indexes/test-sat-selection.html.twig',[]);}#[Route('/indexes/reviews', name: 'page_reviews', methods: ['GET'])]public function page_reviews(){return $this->render('@web/page/indexes/reviews.html.twig',[]);}#[Route('/indexes/support', name: 'page_support', methods: ['GET'])]public function page_support(){return $this->render('@web/page/indexes/support.html.twig',[]);}#[Route('/indexes/results', name: 'page_result', methods: ['GET'])]public function page_result(){return $this->render('@web/page/indexes/result.html.twig',[]);}#[Route('/indexes/results-sat', name: 'page_result_sat', methods: ['GET'])]public function page_result_sat(){return $this->render('@web/page/indexes/result-sat.html.twig',[]);}#[Route('/indexes/section-selection', name: 'page_section_selection', methods: ['GET'])]public function page_section_selection(Request $request){$type = $request->query->get('exam');if (empty($type)) {$type = $request->query->get('type');}$test = $request->query->get('test');if (!$this->hasAccess($type, $test)) {return $this->redirect('/#pricing');}return $this->render('@web/page/indexes/section-selection.html.twig');}#[Route('/indexes/section-sat-selection', name: 'page_section_sat_selection', methods: ['GET'])]public function page_section_sat_selection(Request $request){$type = $request->query->get('exam');if (empty($type)) {$type = $request->query->get('type');}$test = $request->query->get('test');if (!$this->hasAccess($type, $test)) {return $this->redirect('/#pricing');}return $this->render('@web/page/indexes/section-sat-selection.html.twig',[]);}#[Route('/indexes/speaking', name: 'page_speaking', methods: ['GET'])]public function page_speaking(){return $this->render('@web/page/indexes/speaking.html.twig',[]);}#[Route('/indexes/speaking2026', name: 'page_speaking2026', methods: ['GET'])]public function page_speaking2026(){return $this->render('@web/page/indexes/speaking2026.html.twig',[]);}#[Route('/indexes/reading', name: 'page_reading', methods: ['GET'])]public function page_reading(){return $this->render('@web/page/indexes/reading.html.twig',[]);}#[Route('/indexes/reading2026', name: 'page_reading2026', methods: ['GET'])]public function page_reading2026(){return $this->render('@web/page/indexes/reading2026.html.twig',[]);}#[Route('/indexes/listening', name: 'page_listening', methods: ['GET'])]public function page_listening(){return $this->render('@web/page/indexes/listening.html.twig',[]);}#[Route('/indexes/listening2026', name: 'page_listening2026', methods: ['GET'])]public function page_listening2026(){return $this->render('@web/page/indexes/listening2026.html.twig',[]);}#[Route('/indexes/writing', name: 'page_writing', methods: ['GET'])]public function page_writing(){return $this->render('@web/page/indexes/writing.html.twig',[]);}#[Route('/indexes/writing2026', name: 'page_writing2026', methods: ['GET'])]public function page_writing2026(){return $this->render('@web/page/indexes/writing2026.html.twig',[]);}#[Route('/indexes/math', name: 'page_math', methods: ['GET'])]public function page_math(){return $this->render('@web/page/indexes/math.html.twig',[]);}#[Route('/indexes/act', name: 'page_act', methods: ['GET'])]public function page_act(){return $this->render('@web/page/indexes/act.html.twig',[]);}#[Route('/indexes/account', name: 'page_account', methods: ['GET'])]public function page_account(){// dump($this->getUser());// die;if (!$this->getUser()){return $this->redirectToRoute('app_login');}return $this->render('@web/page/indexes/account.html.twig',[]);}}