src/Controller/NavigationController.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  5. use App\Form\SearchFormType;
  6. class NavigationController extends AbstractController 
  7. {
  8.     private $session;
  9.     public function __construct(SessionInterface $session)
  10.     {
  11.         $this->session $session;
  12.     }
  13.     public function navigation()
  14.     {
  15.         $form $this->createForm(SearchFormType::class);
  16.         return $this->render('navigation.html.twig', [
  17.             'searchform' => $form->createView(),
  18.         ]);
  19.     }
  20. }