Open Journal Systems
3.3.0
LazyOpenStream.php
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
}
Psr\Http\Message\StreamInterface
Definition:
vendor/psr/http-message/src/StreamInterface.php:12
GuzzleHttp\Psr7\LazyOpenStream\createStream
createStream()
Definition:
LazyOpenStream.php:41
GuzzleHttp\Psr7
Definition:
AppendStream.php:2
GuzzleHttp\Psr7\LazyOpenStream
Definition:
LazyOpenStream.php:10
GuzzleHttp\Psr7\try_fopen
try_fopen($filename, $mode)
Definition:
guzzlehttp/psr7/src/functions.php:299
GuzzleHttp\Psr7\stream_for
stream_for($resource='', array $options=[])
Definition:
guzzlehttp/psr7/src/functions.php:78
GuzzleHttp\Psr7\LazyOpenStream\__construct
__construct($filename, $mode)
Definition:
LazyOpenStream.php:30
plugins
paymethod
paypal
vendor
guzzlehttp
psr7
src
LazyOpenStream.php
Generated on Fri Aug 28 2020 14:52:31 for Open Journal Systems by
1.8.17