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
refactored search module to 2.0 style #2853
Conversation
$args['sortorder'] = 'count'; | ||
} | ||
|
||
$items = array(); | ||
$items = []; | ||
|
||
// Security check | ||
if (!SecurityUtil::checkPermission('ZikulaSearchModule::', '::', ACCESS_OVERVIEW)) { |
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.
IMO, all security checks should be done at the Controller level (and use shortcut to new service).
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 didn't refactor the api yet on purpose for two reasons: 1st it is quite difficult to incorporate old search plugins and 2nd #1753 is about Twig migration. So my primary focus is on getting things converted to Twig and Sf Forms.
* refactored admin module to 2.0-style * fixed styleci issues * use placeholder attribute
Description
This PR updates the search module to new controller, Twig, Symfony Forms, etc.
Todos
The search block's form type must be able to handle checkboxes for the module plugins. Tracked in #2861