-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fix/remove custom xmlrss #14034
Fix/remove custom xmlrss #14034
Conversation
composer.json
Outdated
"classmap": ["core/xpdo/"] | ||
"classmap": [ | ||
"core/xpdo/", | ||
"core/model/modx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've experimented with external core and found out that MODX classes not added to autoload configuration of the composer. So maybe this PR not the best place for this change, but it should be in MODX 3 to get MODX core classes available via autoload.php.
} | ||
return $this->success('', array('html' => implode("\n",$o))); | ||
|
||
return $this->success('', array('html' => implode(PHP_EOL, $output))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use the short array syntax []
here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @alroniks. Suggestion from @JoshuaLuckers is valid and would be welcome but I'd be happy to see this merged without as well. After 2.7 when 2.x has been merged into 3.x I'd love to throw phpcs
and phpcbf
against the entire codebase to get all different code styles cleaned up. :D
@Mark-H I've removed also mentioning of xmlrss from the build configuration and replaced array by short syntax. |
Hi @opengeek Could we delete this files? Yes, I am asking for approve :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't just change syntax (array syntax in this case) or formatting when making specific other changes like this in the future. We can apply those is atomic commits to avoid unnecessary conflicts.
PR is tested. Feed widgets works after |
…ibrary [#14034] * upstream/pr/14034: Array short syntax Removed xmlrss from build configuration Removed modx from classmap to avoid double required classes Using SimplePie directly in the widget Added by composer class SimplePie for parsing rss feeds Removed outdated code
What does it do?
It removes custom classes for parsing RSS feeds in dashboard widgets by replacing them SimplePie library (composer depps).
Why is it needed?
Because an original refactoring pull request is too big to review it will help to bring fixes a bit faster splitting refactoring into small pieces.
Related issue(s)/PR(s)
#13900