Skip to content

Commit b280b33

Browse files
committed
Separate out requests code.
Changelog excerpt: - Separated the code for performing outbound requests through cURL out to its own independent class.
1 parent a545bab commit b280b33

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
77
### v3.1.0
88

99
[2020.12.04; Maikuolan]: Maintenance release (dependencies update, repository cleanup, etc).
10+
11+
### v3.1.1
12+
13+
[2021.01.10; Maikuolan]: Separated the code for performing outbound requests through cURL out to its own independent class.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ __*Screenshot:*__
7575

7676
### Current major version development status:
7777

78-
⬇Stage reached⬇ ➡Major version➡ | v0 | v1 | v2 | v3
79-
:--|:-:|:-:|:-:|:-:
80-
Pre-Alpha<em><br />- Exploring early concepts/ideas. No code written/available yet.</em> | ✔ | ✔ | ✔ | ✔
81-
Alpha<em><br />- Branched, but unstable. Not production-ready (high risk if used).</em> | ✔ | ✔ | ✔ | ✔
82-
Beta<em><br />- Branched, but unstable. Not production-ready (low risk if used).</em> | ✔ | ✔ | ✔ | ✔
83-
Stable<em><br />- First production-ready version has been tagged/released.</em> | ✔ | ✔ | ✔ | ✔
78+
⬇Stage reached⬇ ➡Major version➡ | v0 | v1 | v2~v3
79+
:--|:-:|:-:|:-:
80+
Pre-Alpha<em><br />- Exploring early concepts/ideas. No code written/available yet.</em> | ✔ | ✔ | ✔
81+
Alpha<em><br />- Branched, but unstable. Not production-ready (high risk if used).</em> | ✔ | ✔ | ✔
82+
Beta<em><br />- Branched, but unstable. Not production-ready (low risk if used).</em> | ✔ | ✔ | ✔
83+
Stable<em><br />- First production-ready version has been tagged/released.</em> | ✔ | ✔ | ✔
8484
Mature<em><br />- Multiple stable versions/releases exist.</em> | ✔ | ✔ | ✔
8585
Locked<em><br />- Still maintained, but new features won't be implemented anymore.</em> | ✔ | ✔
8686
EoL/Dead<em><br />- Not maintained anymore. If possible, stop using, and update ASAP.</em> | ✔
8787

8888
---
8989

9090

91-
Last Updated: 16 October 2020 (2020.10.16).
91+
Last Updated: 12 December 2020 (2020.12.12).

src/CLI.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: CLI handler (last modified: 2020.10.30).
11+
* This file: CLI handler (last modified: 2021.01.10).
1212
*/
1313

1414
namespace phpMussel\CLI;
@@ -390,7 +390,7 @@ private function coexFile(string $Clean): string
390390
{
391391
return $this->recursiveCommand($Clean, function ($Params) {
392392
if (filter_var($Params, FILTER_VALIDATE_URL)) {
393-
$Data = $this->Loader->request($Params);
393+
$Data = $this->Loader->Request->request($Params);
394394
} elseif (is_file($Params) && is_readable($Params)) {
395395
$Data = $this->Loader->readFileBlocks($Params, 0, true);
396396
}
@@ -417,7 +417,7 @@ private function hashFile(string $Clean): string
417417
if (in_array($this->LastAlgo, hash_algos())) {
418418
return $this->recursiveCommand($Clean, function ($Params) {
419419
if (filter_var($Params, FILTER_VALIDATE_URL)) {
420-
$Data = $this->Loader->request($Params);
420+
$Data = $this->Loader->Request->request($Params);
421421
} elseif (is_file($Params) && is_readable($Params)) {
422422
$Data = $this->Loader->readFileBlocks($Params, 0, true);
423423
}

0 commit comments

Comments
 (0)