Skip to content
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

[6.0] Remove instances of Table::getInstance() from core code #44090

Merged
merged 9 commits into from
Feb 3, 2025

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Sep 16, 2024

Summary of Changes

Table::getInstance() has been deprecated some time ago and this PR removes most instances where this is used in the Joomla core.

Testing Instructions

Test that everything still works. Since this code is used nearly everywhere, there aren't really any more precise instructions.

Link to documentations

Please select:

@laoneo
Copy link
Member

laoneo commented Oct 4, 2024

Looks for me like a BC break as the getInstance function does a lookup in the container for instances.

@laoneo laoneo added the b/c break This item changes the behavior in an incompatible why. HEADS UP label Oct 4, 2024
@Hackwar
Copy link
Member Author

Hackwar commented Oct 4, 2024

You are right, I will convert this to 6.0-dev.

@Hackwar Hackwar changed the base branch from 5.3-dev to 6.0-dev October 4, 2024 09:36
@Hackwar Hackwar changed the title [5.3] Remove instances of Table::getInstance() from core code [6.0] Remove instances of Table::getInstance() from core code Oct 4, 2024
# Conflicts:
#	administrator/components/com_admin/script.php
@Bodge-IT
Copy link

Bodge-IT commented Feb 3, 2025

Tested this on downloaded patch with user add and article ... worked as described.

@softforge softforge merged commit f9360e5 into joomla:6.0-dev Feb 3, 2025
3 checks passed
@QuyTon QuyTon added this to the Joomla! 6.0.0 milestone Feb 3, 2025
@Hackwar Hackwar deleted the 5.3-table branch February 4, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b/c break This item changes the behavior in an incompatible why. HEADS UP Feature PR-6.0-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants