Rename HTTPClient namespace to HTTP
This should make namespace a bit more flexible in scope and allow us to move more functionality there later.
This commit is contained in:
parent
0efa8d12f0
commit
5a8d6e48ea
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use dokuwiki\HTTPClient\HTTPClient;
|
||||
use dokuwiki\HTTP\HTTPClient;
|
||||
|
||||
/**
|
||||
* Class HTTPMockClient
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use dokuwiki\HTTPClient\HTTPClient;
|
||||
use dokuwiki\HTTP\HTTPClient;
|
||||
|
||||
/**
|
||||
* Extends the mailer class to expose internal variables for testing
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace dokuwiki;
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* Fetch an URL using our own HTTPClient
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
|
||||
namespace dokuwiki\HTTPClient;
|
||||
namespace dokuwiki\HTTP;
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace dokuwiki\HTTPClient;
|
||||
namespace dokuwiki\HTTP;
|
||||
|
||||
define('HTTP_NL',"\r\n");
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace dokuwiki\HTTPClient;
|
||||
namespace dokuwiki\HTTP;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* IXR - The Incutio XML-RPC Library
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace dokuwiki\Sitemap;
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* A class for building sitemaps and pinging search engines with the sitemap URL.
|
||||
|
|
|
@ -268,9 +268,9 @@ class PassHash extends \dokuwiki\PassHash {
|
|||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 2019-03-17 use \dokuwiki\HTTPClient\HTTPClientException instead!
|
||||
* @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClientException instead!
|
||||
*/
|
||||
class HTTPClientException extends \dokuwiki\HTTPClient\HTTPClientException {
|
||||
class HTTPClientException extends \dokuwiki\HTTP\HTTPClientException {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
|
@ -278,15 +278,15 @@ class HTTPClientException extends \dokuwiki\HTTPClient\HTTPClientException {
|
|||
*/
|
||||
public function __construct($message = '', $code = 0, $previous = null)
|
||||
{
|
||||
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTPClient\HTTPClientException::class);
|
||||
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClientException::class);
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 2019-03-17 use \dokuwiki\HTTPClient\HTTPClient instead!
|
||||
* @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClient instead!
|
||||
*/
|
||||
class HTTPClient extends \dokuwiki\HTTPClient\HTTPClient {
|
||||
class HTTPClient extends \dokuwiki\HTTP\HTTPClient {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
|
@ -294,15 +294,15 @@ class HTTPClient extends \dokuwiki\HTTPClient\HTTPClient {
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTPClient\HTTPClient::class);
|
||||
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClient::class);
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 2019-03-17 use \dokuwiki\HTTPClient\DokuHTTPClient instead!
|
||||
* @deprecated since 2019-03-17 use \dokuwiki\HTTP\DokuHTTPClient instead!
|
||||
*/
|
||||
class DokuHTTPClient extends \dokuwiki\HTTPClient\DokuHTTPClient {
|
||||
class DokuHTTPClient extends \dokuwiki\HTTP\DokuHTTPClient {
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
|
@ -310,7 +310,7 @@ class DokuHTTPClient extends \dokuwiki\HTTPClient\DokuHTTPClient {
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTPClient\DokuHTTPClient::class);
|
||||
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\DokuHTTPClient::class);
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @author Andreas Gohr <andi@splitbrain.org>
|
||||
*/
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
if(!defined('DOKU_MESSAGEURL')){
|
||||
if(in_array('ssl', stream_get_transports())) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @author Andreas Gohr <andi@splitbrain.org>
|
||||
*/
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* Removes empty directories
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
use dokuwiki\ChangeLog\MediaChangeLog;
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* Lists pages which currently use a media file selected for deletion
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @author Michael Hamann <michael@content-space.de>
|
||||
*/
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* Class helper_plugin_extension_extension represents a single extension (plugin or template)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
use dokuwiki\Cache\Cache;
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* Class helper_plugin_extension_repository provides access to the extension repository on dokuwiki.org
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
use dokuwiki\HTTPClient\DokuHTTPClient;
|
||||
use dokuwiki\HTTP\DokuHTTPClient;
|
||||
|
||||
/**
|
||||
* Popularity Feedback Plugin
|
||||
|
|
Loading…
Reference in New Issue