src/Controller/DefaultController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. use Doctrine\DBAL\Connection;
  7. class DefaultController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/", name="app_default")
  11.      */
  12.     public function index(Connection $connection): Response
  13.     
  14.         $molGroupList = \App\Api\Operations\MolecularGroup::execute()->data->molecular_group_view;
  15.         return $this->render('index.html.twig',[
  16.             'molGroupList' => $molGroupList
  17.         ]);
  18.     }
  19.     /**
  20.      * @Route("/toxicity/search", name="app_toxicity_search")
  21.      */
  22.     public function toxicitySearch(): Response
  23.     {
  24.         return $this->render('search/toxicity.html.twig',[
  25.         ]);
  26.     }
  27. }