From b280b33165a537927c3ab3f595651995c4f80369 Mon Sep 17 00:00:00 2001 From: Caleb Mazalevskis Date: Sun, 10 Jan 2021 20:19:19 +0800 Subject: [PATCH] Separate out requests code. Changelog excerpt: - Separated the code for performing outbound requests through cURL out to its own independent class. --- Changelog.md | 4 ++++ README.md | 14 +++++++------- src/CLI.php | 6 +++--- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Changelog.md b/Changelog.md index 342d3d1..53d017b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,3 +7,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co ### v3.1.0 [2020.12.04; Maikuolan]: Maintenance release (dependencies update, repository cleanup, etc). + +### v3.1.1 + +[2021.01.10; Maikuolan]: Separated the code for performing outbound requests through cURL out to its own independent class. diff --git a/README.md b/README.md index c4fdacf..ff7b5d1 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,12 @@ __*Screenshot:*__ ### Current major version development status: -⬇Stage reached⬇ ➡Major version➡ | v0 | v1 | v2 | v3 -:--|:-:|:-:|:-:|:-: -Pre-Alpha
- Exploring early concepts/ideas. No code written/available yet.
| ✔ | ✔ | ✔ | ✔ -Alpha
- Branched, but unstable. Not production-ready (high risk if used).
| ✔ | ✔ | ✔ | ✔ -Beta
- Branched, but unstable. Not production-ready (low risk if used).
| ✔ | ✔ | ✔ | ✔ -Stable
- First production-ready version has been tagged/released.
| ✔ | ✔ | ✔ | ✔ +⬇Stage reached⬇ ➡Major version➡ | v0 | v1 | v2~v3 +:--|:-:|:-:|:-: +Pre-Alpha
- Exploring early concepts/ideas. No code written/available yet.
| ✔ | ✔ | ✔ +Alpha
- Branched, but unstable. Not production-ready (high risk if used).
| ✔ | ✔ | ✔ +Beta
- Branched, but unstable. Not production-ready (low risk if used).
| ✔ | ✔ | ✔ +Stable
- First production-ready version has been tagged/released.
| ✔ | ✔ | ✔ Mature
- Multiple stable versions/releases exist.
| ✔ | ✔ | ✔ Locked
- Still maintained, but new features won't be implemented anymore.
| ✔ | ✔ EoL/Dead
- Not maintained anymore. If possible, stop using, and update ASAP.
| ✔ @@ -88,4 +88,4 @@ EoL/Dead
- Not maintained anymore. If possible, stop using, and update --- -Last Updated: 16 October 2020 (2020.10.16). +Last Updated: 12 December 2020 (2020.12.12). diff --git a/src/CLI.php b/src/CLI.php index fd4a2ba..7349bc8 100644 --- a/src/CLI.php +++ b/src/CLI.php @@ -8,7 +8,7 @@ * License: GNU/GPLv2 * @see LICENSE.txt * - * This file: CLI handler (last modified: 2020.10.30). + * This file: CLI handler (last modified: 2021.01.10). */ namespace phpMussel\CLI; @@ -390,7 +390,7 @@ private function coexFile(string $Clean): string { return $this->recursiveCommand($Clean, function ($Params) { if (filter_var($Params, FILTER_VALIDATE_URL)) { - $Data = $this->Loader->request($Params); + $Data = $this->Loader->Request->request($Params); } elseif (is_file($Params) && is_readable($Params)) { $Data = $this->Loader->readFileBlocks($Params, 0, true); } @@ -417,7 +417,7 @@ private function hashFile(string $Clean): string if (in_array($this->LastAlgo, hash_algos())) { return $this->recursiveCommand($Clean, function ($Params) { if (filter_var($Params, FILTER_VALIDATE_URL)) { - $Data = $this->Loader->request($Params); + $Data = $this->Loader->Request->request($Params); } elseif (is_file($Params) && is_readable($Params)) { $Data = $this->Loader->readFileBlocks($Params, 0, true); }