芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/graham-campbell/gitlab/src/HttpClient/BuilderFactory.php
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace GrahamCampbell\GitLab\HttpClient; use Gitlab\HttpClient\Builder; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; use Psr\Http\Message\UriFactoryInterface; /** * This is the http client builder factory class. * * @author Graham Campbell
*/ class BuilderFactory { /** * The http client instance. * * @var \Psr\Http\Client\ClientInterface */ protected $httpClient; /** * The request factory instance. * * @var \Psr\Http\Message\RequestFactoryInterface */ protected $requestFactory; /** * The stream factory instance. * * @var \Psr\Http\Message\StreamFactoryInterface */ protected $streamFactory; /** * The uri factory instance. * * @var \Psr\Http\Message\UriFactoryInterface */ protected $uriFactory; /** * Create a new connection factory instance. * * @param \Psr\Http\Client\ClientInterface $httpClient * @param \Psr\Http\Message\RequestFactoryInterface $requestFactory * @param \Psr\Http\Message\StreamFactoryInterface $streamFactory * @param \Psr\Http\Message\UriFactoryInterface $uriFactory * * @return void */ public function __construct(ClientInterface $httpClient, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, UriFactoryInterface $uriFactory) { $this->httpClient = $httpClient; $this->requestFactory = $requestFactory; $this->streamFactory = $streamFactory; $this->uriFactory = $uriFactory; } /** * Return a new http client builder. * * @return \Gitlab\HttpClient\Builder */ public function make() { return new Builder($this->httpClient, $this->requestFactory, $this->streamFactory, $this->uriFactory); } }