+ function __construct(protected ContainerInterface $container, protected Environment $twig) {
+ }
+
+ /**
+ * The index page
+ *
+ * Display file tree
+ *
+ * @param Request $request The request instance
+ * @return Response The rendered view
+ */
+ public function index(Request $request, string $path): Response {
+ //Render template
+ $response = $this->twig->render('@RapsysTree/index.html.twig', $this->context);
+ $response->setEtag(md5($response->getContent()));
+ $response->setPublic();
+ $response->isNotModified($request);
+
+ //Return response
+ return $response;