Skip to content

[5.0] Extending Joomla\CMS\Filesystem\Path from Joomla\Filesystem\Path#40104

Merged
HLeithner merged 2 commits intojoomla:5.0-devfrom
Hackwar:5.0-filesystem-path
Sep 2, 2023
Merged

[5.0] Extending Joomla\CMS\Filesystem\Path from Joomla\Filesystem\Path#40104
HLeithner merged 2 commits intojoomla:5.0-devfrom
Hackwar:5.0-filesystem-path

Conversation

@Hackwar
Copy link
Copy Markdown
Member

@Hackwar Hackwar commented Mar 13, 2023

Summary of Changes

This PR extends the CMS Path class from the framework Filesystem Path class. This removes all duplicate code from the CMS class, using the framework methods where possible. This means that now this class throws exceptions.
I've changed this a bit agressively, no remaining method stubs with deprecation notices, but I hope that this is still okay.

This PR would be the extension to #40127

Testing Instructions

Codereview

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@Hackwar
Copy link
Copy Markdown
Member Author

Hackwar commented Apr 3, 2023

I checked this again after #40111 was merged. #40127 migrates all calls to this class in the core to the framework class. This PR correctly extends the CMS class from the framework class, hopefully raising awareness to migrate existing code over to the framework class.

@HLeithner HLeithner added Feature b/c break This item changes the behavior in an incompatible why. HEADS UP labels Apr 7, 2023
@Hackwar Hackwar closed this Apr 18, 2023
@Hackwar Hackwar reopened this Apr 18, 2023
@HLeithner
Copy link
Copy Markdown
Member

I would like to move this class to the combat plugin (same for the other deprecated classes) instead of a silent change

@HLeithner
Copy link
Copy Markdown
Member

Since this is hard to test because it would effect multiple parts of the CMS I merge this into beta1 to get better real world feedback

@HLeithner HLeithner added this to the Joomla! 5.0 milestone Sep 2, 2023
@HLeithner HLeithner merged commit d5fa6a3 into joomla:5.0-dev Sep 2, 2023
@Hackwar Hackwar deleted the 5.0-filesystem-path branch September 2, 2023 19:25
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants