<?php
namespace Aviatur\SearchBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Aviatur\TwigBundle\Services\TwigFolder;
use Aviatur\DocumentationBundle\Services\DocumentationService;
class DocumentationController extends AbstractController {
public function indexAction(TwigFolder $twigFolder, SessionInterface $session, DocumentationService $documentationService) {
$agencyFolder = $twigFolder->twigFlux();
$infoDocumentation = $documentationService->documentationInfo($session->get('agencyId'));
return $this->render($twigFolder->twigExists('@AviaturTwig/'. $agencyFolder .'/Search/Documentation/documentationSearch_index.html.twig'), ['infoDocumentation' => $infoDocumentation]);
}
}