diff options
author | Robin Appelman <robin@icewind.nl> | 2020-04-01 19:48:40 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-05-20 23:59:08 +0300 |
commit | 25f5a5e5757f1a1ac6af0bd94bf78066163d927f (patch) | |
tree | c331931e0b92d2f7c8d6ed5228d780f6713f230b /lib | |
parent | 136a716df0cbdf9e02573d2b2939ab28494b2d9d (diff) |
update autoloader
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/composer/composer/autoload_classmap.php | 1 | ||||
-rw-r--r-- | lib/composer/composer/autoload_static.php | 1 | ||||
-rw-r--r-- | lib/private/Files/Stream/SeekableHttpStream.php | 16 |
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/composer/composer/autoload_classmap.php b/lib/composer/composer/autoload_classmap.php index d66039ae1fd..998fe176967 100644 --- a/lib/composer/composer/autoload_classmap.php +++ b/lib/composer/composer/autoload_classmap.php @@ -1007,6 +1007,7 @@ return array( 'OC\\Files\\Storage\\Wrapper\\Wrapper' => $baseDir . '/lib/private/Files/Storage/Wrapper/Wrapper.php', 'OC\\Files\\Stream\\Encryption' => $baseDir . '/lib/private/Files/Stream/Encryption.php', 'OC\\Files\\Stream\\Quota' => $baseDir . '/lib/private/Files/Stream/Quota.php', + 'OC\\Files\\Stream\\SeekableHttpStream' => $baseDir . '/lib/private/Files/Stream/SeekableHttpStream.php', 'OC\\Files\\Type\\Detection' => $baseDir . '/lib/private/Files/Type/Detection.php', 'OC\\Files\\Type\\Loader' => $baseDir . '/lib/private/Files/Type/Loader.php', 'OC\\Files\\Type\\TemplateManager' => $baseDir . '/lib/private/Files/Type/TemplateManager.php', diff --git a/lib/composer/composer/autoload_static.php b/lib/composer/composer/autoload_static.php index 0a65eae24bb..7dd0e15e51d 100644 --- a/lib/composer/composer/autoload_static.php +++ b/lib/composer/composer/autoload_static.php @@ -1036,6 +1036,7 @@ class ComposerStaticInit53792487c5a8370acc0b06b1a864ff4c 'OC\\Files\\Storage\\Wrapper\\Wrapper' => __DIR__ . '/../../..' . '/lib/private/Files/Storage/Wrapper/Wrapper.php', 'OC\\Files\\Stream\\Encryption' => __DIR__ . '/../../..' . '/lib/private/Files/Stream/Encryption.php', 'OC\\Files\\Stream\\Quota' => __DIR__ . '/../../..' . '/lib/private/Files/Stream/Quota.php', + 'OC\\Files\\Stream\\SeekableHttpStream' => __DIR__ . '/../../..' . '/lib/private/Files/Stream/SeekableHttpStream.php', 'OC\\Files\\Type\\Detection' => __DIR__ . '/../../..' . '/lib/private/Files/Type/Detection.php', 'OC\\Files\\Type\\Loader' => __DIR__ . '/../../..' . '/lib/private/Files/Type/Loader.php', 'OC\\Files\\Type\\TemplateManager' => __DIR__ . '/../../..' . '/lib/private/Files/Type/TemplateManager.php', diff --git a/lib/private/Files/Stream/SeekableHttpStream.php b/lib/private/Files/Stream/SeekableHttpStream.php index 8fe54839e25..fdcd9ea8cfb 100644 --- a/lib/private/Files/Stream/SeekableHttpStream.php +++ b/lib/private/Files/Stream/SeekableHttpStream.php @@ -110,14 +110,14 @@ class SeekableHttpStream implements File { return true; } - function stream_open($path, $mode, $options, &$opened_path) { + public function stream_open($path, $mode, $options, &$opened_path) { $options = stream_context_get_options($this->context)[self::PROTOCOL]; $this->openCallback = $options['callback']; return $this->reconnect(0); } - function stream_read($count) { + public function stream_read($count) { if (!$this->current) { return false; } @@ -126,7 +126,7 @@ class SeekableHttpStream implements File { return $ret; } - function stream_seek($offset, $whence = SEEK_SET) { + public function stream_seek($offset, $whence = SEEK_SET) { switch ($whence) { case SEEK_SET: if ($offset === $this->offset) { @@ -144,19 +144,19 @@ class SeekableHttpStream implements File { return false; } - function stream_tell() { + public function stream_tell() { return $this->offset; } - function stream_stat() { + public function stream_stat() { return fstat($this->current); } - function stream_eof() { + public function stream_eof() { return feof($this->current); } - function stream_close() { + public function stream_close() { fclose($this->current); } @@ -179,6 +179,4 @@ class SeekableHttpStream implements File { public function stream_flush() { return; //noop because readonly stream } - - } |