We need a hook manager in the server container which allows registration of hook listeners with delayed loading of the explicit listener. Something like in the activity manager:https://github.com/owncloud/core/blob/master/lib/public/activity/imanager.php#L58
Activity
PVince81 commentedon Jan 19, 2015
and then move the hooks that are registered in base.php to their relevant places: https://github.com/owncloud/core/blob/master/lib/base.php#L676
PVince81 commentedon Jan 19, 2015
If "preview", "avatar" and "tags" were some kind of module (subapp ?) they could register the hook in their init code.
PVince81 commentedon Jan 19, 2015
module aka plugin a bit like I did in JS for the tags: https://github.com/owncloud/core/blob/master/apps/files/js/tagsplugin.js#L179
DeepDiver1975 commentedon Aug 14, 2015
actually fixed by #18316