Ejemplo n.º 1
0
 /**
  * Get contents of a file object
  *
  * @param \TYPO3\CMS\Core\Resource\FileInterface $file
  * @return string
  */
 public function getFileContents($file)
 {
     // Check if $file is readable
     if (!$this->checkFileActionPermission('read', $file)) {
         throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileReadPermissionsException('Reading file "' . $file->getIdentifier() . '" is not allowed.', 1330121089);
     }
     return $this->driver->getFileContents($file);
 }