Exemple #1
0
 /**
  * Makes extra sure that we can actually do something with the file
  *
  * @param Node $node
  *
  * @throws NotFoundServiceException
  */
 private function validateNode($node)
 {
     if (!$node->getMimetype() || !$node->isReadable()) {
         throw new NotFoundServiceException("Can't access the file");
     }
 }