function Reader::resolveStream

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 '';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.