-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.1] Improvements to extension updater #46054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BrainforgeUK
wants to merge
56
commits into
joomla:6.1-dev
Choose a base branch
from
BrainforgeUK:6.1-dev
base: 6.1-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 38 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
10e8f8c
Added after package download events.
BrainforgeUK 4a01d1e
Update UpdateAdapter.php
BrainforgeUK 532596d
Update InstallerHelper.php
BrainforgeUK 1292449
Update InstallerHelper.php
BrainforgeUK 4b99f74
Update InstallerHelper.php
BrainforgeUK e077f9a
Update UpdateModel.php
BrainforgeUK 7568417
Update InstallerHelper.php
BrainforgeUK c66e160
Update ExtensionAdapter.php
BrainforgeUK d7e5e1e
Update InstallerHelper.php
BrainforgeUK 8bea8b1
Revert "Update InstallerHelper.php"
BrainforgeUK 639c4fc
Update InstallerHelper.php
BrainforgeUK 90321af
Update UpdateModel.php
BrainforgeUK dea94b8
Update InstallerHelper.php
BrainforgeUK e95aaa0
Update InstallerHelper.php
BrainforgeUK c0d8988
Update administrator/components/com_installer/src/Model/UpdateModel.php
BrainforgeUK 2f03821
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK e5927da
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 12eafcc
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK d39184c
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK a5f0dca
Update administrator/components/com_installer/src/Model/UpdateModel.php
BrainforgeUK 1f668ca
Update libraries/src/Updater/UpdateAdapter.php
BrainforgeUK 916ef5b
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 27200a4
Update libraries/src/Event/Installer/AfterPackageDownloadEvent.php
BrainforgeUK fb81db3
Update libraries/src/Event/Installer/AfterPackageDownloadFailedEvent.php
BrainforgeUK fcfd170
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 377b48c
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 71210a7
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 733f46c
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 4fee864
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK d8a7107
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 2ba9f37
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 265a5aa
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 37def21
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK f7fec30
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK cd64500
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 6e6c7b8
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 674cc56
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 03b3a66
Update InstallerHelper.php
BrainforgeUK ca448e4
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK f6c38c6
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK e5f009d
Update libraries/src/Event/Installer/AfterPackageDownloadEvent.php
BrainforgeUK 059df37
Update libraries/src/Event/Installer/AfterPackageDownloadFailedEvent.php
BrainforgeUK e4683ca
Refactor response code checks to use getStatusCode
BrainforgeUK c3da77c
Merge branch '6.1-dev' into 6.1-dev
BrainforgeUK f6ab3be
Update header retrieval method in InstallerHelper
BrainforgeUK 6a61602
Update libraries/src/Installer/InstallerHelper.php
BrainforgeUK 9866580
Fix body assignment to use getBody method
BrainforgeUK 2f268f2
Fix json_decode to use getBody method
BrainforgeUK 8f575bb
Enhance URL handling in InstallerHelper, added comments.
BrainforgeUK d3c8ac1
Refactor URL replacement and formatting in InstallerHelper
BrainforgeUK 07ba211
Refactor foreach loop syntax in InstallerHelper.php
BrainforgeUK 5a63607
Update phpstan-baseline.neon
richard67 4af9025
Merge branch '6.1-dev' into 6.1-dev
richard67 a46cdb4
Add error message for downloading package
BrainforgeUK b039143
Enhance error handling for 403 response status
BrainforgeUK 50a0fcd
Fix typo in download error message
BrainforgeUK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
libraries/src/Event/Installer/AfterPackageDownloadEvent.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * Joomla! Content Management System | ||
| * | ||
| * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| namespace Joomla\CMS\Event\Installer; | ||
|
|
||
| use Joomla\Event\Event; | ||
|
|
||
| // phpcs:disable PSR1.Files.SideEffects | ||
| \defined('_JEXEC') or die; | ||
| // phpcs:enable PSR1.Files.SideEffects | ||
|
|
||
| /** | ||
| * Class for Installer events | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| */ | ||
| class AfterPackageDownloadEvent extends Event | ||
| { | ||
| } | ||
25 changes: 25 additions & 0 deletions
25
libraries/src/Event/Installer/AfterPackageDownloadFailedEvent.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * Joomla! Content Management System | ||
| * | ||
| * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> | ||
BrainforgeUK marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| namespace Joomla\CMS\Event\Installer; | ||
|
|
||
| use Joomla\Event\Event; | ||
|
|
||
| // phpcs:disable PSR1.Files.SideEffects | ||
| \defined('_JEXEC') or die; | ||
| // phpcs:enable PSR1.Files.SideEffects | ||
|
|
||
| /** | ||
| * Class for Installer events | ||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| */ | ||
| class AfterPackageDownloadFailedEvent extends Event | ||
| { | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.