Skip to content

Commit

Permalink
Separate out requests code.
Browse files Browse the repository at this point in the history
Changelog excerpt:
- Separated the code for performing outbound requests through cURL out to
  its own independent class.
  • Loading branch information
Maikuolan committed Jan 10, 2021
1 parent a545bab commit b280b33
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ __*Screenshot:*__

### Current major version development status:

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

---


Last Updated: 16 October 2020 (2020.10.16).
Last Updated: 12 December 2020 (2020.12.12).
6 changes: 3 additions & 3 deletions src/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit b280b33

Please sign in to comment.