-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.2] Fix library autoloading #39348
Conversation
@SharkyKZ tested it successfully. |
@sergeytolkachyov Could you please go to https://issues.joomla.org/tracker/joomla-cms/39348 , click on Test this button and report your test result there so that your test will be counted? We require two successful tests for each PR before it can be merged. |
I have tested this item ✅ successfully on 326bfe2 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39348. |
Thanks @sergeytolkachyov |
I've restored @sergeytolkachyov 's test result because the commits which have invalidated the test counter were just removing a redundant variable declaration and a clean branch update. The PR should still work the same as before. But I think it is not easy to test without having an example library following that vendor structure. |
I'll test it again tomorrow. |
@sergeytolkachyov No need to do that. Your test is still valid, I restored the counter. |
@richard67 what is currently missing for the merging of this pr? |
@sergeytolkachyov A 2nd human test. Your test still counts, but each PR needs 2 human tests before it is set to RTC (ready to commit). After that a maintainer will merge it whenever they find time. |
I have tested this item ✅ successfully on 53f4b88 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39348. |
1 similar comment
I have tested this item ✅ successfully on 53f4b88 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39348. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39348. |
Thank you |
Summary of Changes
Fixes #39347.
This fixes some issues in namespace mapper regarding library extension autoloading. First, this changes the manifest lookup from
JPATH_LIBRARIES
toJPATH_MANIFESTS
directory where library manifests are actually stored. Secondly, this adds support for the possibly undocumented "vendor" library structure.Testing Instructions
See #39342 and #39347.
Documentation Changes Required
Although this PR is a bug fix, library autoloading and "vendor" library structure features are probably not documented. So documentation should be added somewhere.