Jump to content

Register Event for plugins


Blesta Addons

Recommended Posts

i want to register a custom event for my plugin to trigger it from other plugin. from the Event Components or the Event Util it appear it only search for event that are reside in the their respective directory, so no way to add events without adding files to that directory .

is this true or i have missed something?

Link to comment
Share on other sites

The event listeners will fallback to the default location of the core observers if you do not specific your own callback when registering the event.

Don't use the Events component, it has been deprecated and will be removed. Use \Blesta\Core\Util\Events\* as described in the documentation. Also take a look at the README under /blesta/core/Util/Events/ on the file system.

Link to comment
Share on other sites

15 hours ago, Tyson said:

The event listeners will fallback to the default location of the core observers if you do not specific your own callback when registering the event.

Don't use the Events component, it has been deprecated and will be removed. Use \Blesta\Core\Util\Events\* as described in the documentation. Also take a look at the README under /blesta/core/Util/Events/ on the file system.

i will try it later , thank for the info .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...