Skip to content

Conversation

@Hackwar
Copy link
Member

@Hackwar Hackwar commented Mar 15, 2023

Summary of Changes

In the process of deprecating the CMS Filesystem package (see #40111), this PR changes all usages of Joomla\CMS\Filesystem\Path to Joomla\Filesystem\Path. These 2 classes are almost completely identical, except for one case: Path::clean() in the CMS class uses UnexpectedValueException when the input is not a string, while the Filesystem Path class uses InvalidArgumentException. All other cases where an exception is thrown, the exception in the framework class inherits from the generic Exception which we use in the CMS class. So this is 100% compatible.

While this PR migrates away from the CMS class, #40104 removes most of the old code.

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

@MacJoom MacJoom self-assigned this Mar 22, 2023
@laoneo
Copy link
Member

laoneo commented Apr 6, 2023

I reviewed some of the files and only functions are used which are basically the same like clean, isOwner or setPermissions.

@Hackwar Hackwar added the bug label Apr 8, 2023
@Hackwar Hackwar closed this Apr 18, 2023
@Hackwar Hackwar reopened this Apr 18, 2023
@Hackwar Hackwar changed the base branch from 4.4-dev to 5.0-dev April 18, 2023 12:52
@Hackwar Hackwar changed the title [4.4] Migrating from Joomla\CMS\Filesystem\Path to Joomla\Filesystem\Path [5.0] Migrating from Joomla\CMS\Filesystem\Path to Joomla\Filesystem\Path Apr 18, 2023
@laoneo laoneo removed the PR-4.4-dev label Apr 18, 2023
….4-filesystem-path

# Conflicts:
#	libraries/src/Form/Field/ComponentlayoutField.php
#	libraries/src/Form/Field/ModulelayoutField.php
#	libraries/src/MVC/Model/BaseModel.php
#	plugins/system/languagefilter/src/Extension/LanguageFilter.php
@HLeithner
Copy link
Member

can you resolve the conflict please, then I can merge this

@Hackwar
Copy link
Member Author

Hackwar commented Jul 3, 2023

done

@HLeithner HLeithner merged commit 99072de into joomla:5.0-dev Jul 3, 2023
@HLeithner
Copy link
Member

I did a full review on all usages and it looks ok, thanks

@Hackwar Hackwar deleted the 4.4-filesystem-path branch March 22, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants