<?php 
namespace App\Controller; 
 
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; 
use Symfony\Component\HttpFoundation\Session\SessionInterface; 
 
use App\Form\SearchFormType; 
 
class NavigationController extends AbstractController  
{ 
    private $session; 
 
    public function __construct(SessionInterface $session) 
    { 
        $this->session = $session; 
    } 
 
    public function navigation() 
    { 
        $form = $this->createForm(SearchFormType::class); 
 
        return $this->render('navigation.html.twig', [ 
            'searchform' => $form->createView(), 
        ]); 
    } 
}