예제 #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
파일: File.php 프로젝트: symcloud/symcloud
 /**
  * @return string
  *
  * @VirtualProperty()
  */
 public function getMimetype()
 {
     return $this->node->getMimetype();
 }