Skip to content

Helpers ​

FluentEvent keeps logic with more than one caller in services under app/Services/, and small tools under app/Utils/. The Services & Utilities page lists the ones that are useful from add-on code.

A few rules apply to all of them:

  • Services do not fire hooks. The controllers that call them do. When you call a service that writes, fire the matching fluent_event/... hook yourself, as the code snippets show.
  • Call them after boot. Use fluent_event/loaded or a later hook.
  • They are internal. Signatures can change between releases. Hooks and the REST API are the stable surface; prefer them when they do the job.

FluentEvent developer documentation