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
Namespace
TYPO3\PharStreamWrapper\PharCode
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 '';
}