private function getContent(TreeFileInterface $file) { // TODO streaming $response = new Response($file->getContent()); $response->headers->set('Content-Type', $file->getMimeType()); return $response; }
/** * @return string * * @VirtualProperty() */ public function getMimetype() { return $this->node->getMimetype(); }