|
Last change
on this file since 8a5cdba was 01a620f, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago |
|
Removed submodules for php externals and use composer to provide them and versioned them afterwards
|
-
Property mode
set to
100644
|
|
File size:
424 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | namespace GuzzleHttp\Psr7;
|
|---|
| 3 |
|
|---|
| 4 | use Psr\Http\Message\StreamInterface;
|
|---|
| 5 |
|
|---|
| 6 | /**
|
|---|
| 7 | * Stream decorator that prevents a stream from being seeked
|
|---|
| 8 | */
|
|---|
| 9 | class NoSeekStream implements StreamInterface
|
|---|
| 10 | {
|
|---|
| 11 | use StreamDecoratorTrait;
|
|---|
| 12 |
|
|---|
| 13 | public function seek($offset, $whence = SEEK_SET)
|
|---|
| 14 | {
|
|---|
| 15 | throw new \RuntimeException('Cannot seek a NoSeekStream');
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | public function isSeekable()
|
|---|
| 19 | {
|
|---|
| 20 | return false;
|
|---|
| 21 | }
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.