Is documentation about hooks correct

I’m trying to subscribe to file creation using this manual https://docs.nextcloud.com/server/latest/developer_manual/app/events.html#symfony-event-dispatcher
But seems like I should create a plugin for webdav and register it in info.xml to listen PreCreate event for example
Am I right?

To listen PreCreate event an application should have dav type https://github.com/nextcloud/server/blob/411058e47cd42871b2099190ac67f47b9bd17e30/apps/files_trashbin/appinfo/info.xml#L19

Hey,

did you get this working? I saw your post just now, sorry for the lack of response …