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:
Michael Große 2019-03-26 22:05:09 +01:00
parent 0efa8d12f0
commit 5a8d6e48ea
No known key found for this signature in database
GPG Key ID: BDD834E001B99EDC
15 changed files with 23 additions and 23 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
use dokuwiki\HTTPClient\HTTPClient; use dokuwiki\HTTP\HTTPClient;
/** /**
* Class HTTPMockClient * Class HTTPMockClient

View File

@ -1,6 +1,6 @@
<?php <?php
use dokuwiki\HTTPClient\HTTPClient; use dokuwiki\HTTP\HTTPClient;
/** /**
* Extends the mailer class to expose internal variables for testing * Extends the mailer class to expose internal variables for testing

View File

@ -2,7 +2,7 @@
namespace dokuwiki; namespace dokuwiki;
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
/** /**
* Fetch an URL using our own HTTPClient * Fetch an URL using our own HTTPClient

View File

@ -1,7 +1,7 @@
<?php <?php
namespace dokuwiki\HTTPClient; namespace dokuwiki\HTTP;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace dokuwiki\HTTPClient; namespace dokuwiki\HTTP;
define('HTTP_NL',"\r\n"); define('HTTP_NL',"\r\n");

View File

@ -1,6 +1,6 @@
<?php <?php
namespace dokuwiki\HTTPClient; namespace dokuwiki\HTTP;
use Exception; use Exception;

View File

@ -1,6 +1,6 @@
<?php <?php
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
/** /**
* IXR - The Incutio XML-RPC Library * IXR - The Incutio XML-RPC Library

View File

@ -8,7 +8,7 @@
namespace dokuwiki\Sitemap; namespace dokuwiki\Sitemap;
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
/** /**
* A class for building sitemaps and pinging search engines with the sitemap URL. * A class for building sitemaps and pinging search engines with the sitemap URL.

View File

@ -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 * @inheritdoc
@ -278,15 +278,15 @@ class HTTPClientException extends \dokuwiki\HTTPClient\HTTPClientException {
*/ */
public function __construct($message = '', $code = 0, $previous = null) 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); 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 * @inheritdoc
@ -294,15 +294,15 @@ class HTTPClient extends \dokuwiki\HTTPClient\HTTPClient {
*/ */
public function __construct() public function __construct()
{ {
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTPClient\HTTPClient::class); DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClient::class);
parent::__construct(); 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 * @inheritdoc
@ -310,7 +310,7 @@ class DokuHTTPClient extends \dokuwiki\HTTPClient\DokuHTTPClient {
*/ */
public function __construct() public function __construct()
{ {
DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTPClient\DokuHTTPClient::class); DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\DokuHTTPClient::class);
parent::__construct(); parent::__construct();
} }

View File

@ -6,7 +6,7 @@
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
if(!defined('DOKU_MESSAGEURL')){ if(!defined('DOKU_MESSAGEURL')){
if(in_array('ssl', stream_get_transports())) { if(in_array('ssl', stream_get_transports())) {

View File

@ -6,7 +6,7 @@
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
/** /**
* Removes empty directories * Removes empty directories

View File

@ -7,7 +7,7 @@
*/ */
use dokuwiki\ChangeLog\MediaChangeLog; use dokuwiki\ChangeLog\MediaChangeLog;
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
/** /**
* Lists pages which currently use a media file selected for deletion * Lists pages which currently use a media file selected for deletion

View File

@ -6,7 +6,7 @@
* @author Michael Hamann <michael@content-space.de> * @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) * Class helper_plugin_extension_extension represents a single extension (plugin or template)

View File

@ -7,7 +7,7 @@
*/ */
use dokuwiki\Cache\Cache; 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 * Class helper_plugin_extension_repository provides access to the extension repository on dokuwiki.org

View File

@ -1,6 +1,6 @@
<?php <?php
use dokuwiki\HTTPClient\DokuHTTPClient; use dokuwiki\HTTP\DokuHTTPClient;
/** /**
* Popularity Feedback Plugin * Popularity Feedback Plugin