private function getContent(TreeFileInterface $file) { // TODO streaming $response = new Response($file->getContent()); $response->headers->set('Content-Type', $file->getMimeType()); return $response; }