You are here

private function Reader::resolveStream in Drupal 7

Resolves stream in order to handle compressed Phar archives.

Return value

string

1 call to Reader::resolveStream()
Reader::resolveContainer in misc/typo3/phar-stream-wrapper/src/Phar/Reader.php

File

misc/typo3/phar-stream-wrapper/src/Phar/Reader.php, line 145

Class

Reader

Namespace

TYPO3\PharStreamWrapper\Phar

Code

private function resolveStream() {
  if ($this->fileType === 'application/x-gzip' || $this->fileType === 'application/gzip') {
    return 'compress.zlib://';
  }
  elseif ($this->fileType === 'application/x-bzip2') {
    return 'compress.bzip2://';
  }
  return '';
}