Subversion Repositories php-qbpwcf

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?php
2
 
3
namespace Guzzle\Stream;
4
 
5
use Guzzle\Http\Message\RequestInterface;
6
 
7
/**
8
 * Interface used for creating streams from requests
9
 */
10
interface StreamRequestFactoryInterface
11
{
12
    /**
13
     * Create a stream based on a request object
14
     *
15
     * @param RequestInterface $request Base the stream on a request
16
     * @param array|resource   $context A stream_context_options resource or array of parameters used to create a
17
     *                                  stream context.
18
     * @param array            $params  Optional array of parameters specific to the factory
19
     *
20
     * @return StreamInterface Returns a stream object
21
     * @throws \Guzzle\Common\Exception\RuntimeException if the stream cannot be opened or an error occurs
22
     */
23
    public function fromRequest(RequestInterface $request, $context = array(), array $params = array());
24
}