%PDF- %PDF-
| Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/bookmarks/lib/Http/ |
| Current File : /www/varak.net/nextcloud.varak.net/apps_old/apps/bookmarks/lib/Http/RequestFactory.php |
<?php
/*
* Copyright (c) 2020. The Nextcloud Bookmarks contributors.
*
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/
namespace OCA\Bookmarks\Http;
use GuzzleHttp\Psr7\Request;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;
class RequestFactory implements RequestFactoryInterface {
/**
* * Create a new request.
* *
*
* @param string $method The HTTP method associated with the request.
* @param UriInterface|string $uri The URI associated with the request.
*
* @return Request
*/
public function createRequest(string $method, $uri): RequestInterface {
return new Request($method, $uri);
}
}