-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Move addIncludePath from trait to class #27998
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
Conversation
|
Thanks fixed it |
|
It's like cs fixes, it always takes two or more attempts to fix a trailing space :-) |
|
|
Last commit reintroduces the original issue. |
|
This works but if we go this way the method should stay in |
|
@rdeutz Can you clarify in your testing instructions what components are affected by the change? I want to ensure that this is tested properly. |
|
I have tested this with differenc components: com_cache, com_users, com_content and looks good. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27998. |
|
@rdeutz Can you please resolve conflicts? |
|
|
|
Confirmed with the weblinks module that this fixes the issue. Thankyou! |
|
Wasn't this method supposed to stay in the trait? |
|
Ideal world yes. But because of php internals it doesn’t work. See the original issue |
|
It works either way. The fix was moving caching to class property. PR for moving back the method #28322. |
Pull Request for Issue #24559 .
Summary of Changes
This moves the addIncludeMethod from the LeagcyModelLoaderTrait to the BaseModel and declare the $paths var as static member of the class
Testing Instructions
Check components that are using the addIncludePath method, if they are still working
Expected result
It still works
Documentation Changes Required
none