ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
LazyOpenStream.php
Go to the documentation of this file.
1
<?
php
2
namespace
GuzzleHttp\Psr7
;
3
4
use
Psr\Http\Message\StreamInterface
;
5
10
class
LazyOpenStream
implements
StreamInterface
11
{
12
use
StreamDecoratorTrait
;
13
15
private
$filename
;
16
18
private
$mode
;
19
24
public
function
__construct
(
$filename
,
$mode
)
25
{
26
$this->filename =
$filename
;
27
$this->mode =
$mode
;
28
}
29
35
protected
function
createStream
()
36
{
37
return
stream_for
(try_fopen($this->filename, $this->mode));
38
}
39
}
GuzzleHttp\Psr7\LazyOpenStream\$mode
$mode
Definition:
LazyOpenStream.php:18
GuzzleHttp\Psr7\stream_for
stream_for($resource='', array $options=[])
Create a new stream based on the input type.
Definition:
functions.php:78
GuzzleHttp\Psr7\LazyOpenStream\createStream
createStream()
Creates the underlying stream lazily when required.
Definition:
LazyOpenStream.php:35
GuzzleHttp\Psr7\LazyOpenStream\$filename
$filename
Definition:
LazyOpenStream.php:15
GuzzleHttp\Psr7
Definition:
AppendStream.php:2
StreamInterface
StreamDecoratorTrait
GuzzleHttp\Psr7\LazyOpenStream\__construct
__construct($filename, $mode)
Definition:
LazyOpenStream.php:24
GuzzleHttp\Psr7\LazyOpenStream
Lazily reads or writes to a file that is opened only after an IO operation take place on the stream...
Definition:
LazyOpenStream.php:10
php
Psr\Http\Message\StreamInterface
Describes a data stream.
Definition:
StreamInterface.php:12
libs
composer
vendor
guzzlehttp
psr7
src
LazyOpenStream.php
Generated on Thu Jan 16 2025 19:01:41 for ILIAS by
1.8.13 (using
Doxyfile
)