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