BedrioxDOCUMENTATION
CORE EVENT

PostEvent

Marker for immutable events emitted after an authoritative commit.

Committed post-eventBedriox\Api\Event
WHAT IT REPRESENTS

Reports that post has committed. Plugins may observe the result, but this event does not roll the action back.

WHEN IT FIRES

Bedriox dispatches this after the related action has committed. It is an observation and cannot undo the result.

Available methods

This type does not declare additional public methods.

Listen for this event

Register the containing object with PluginContext::events()->registerSubscriber($this), then add a typed handler:

PHP
use Bedriox\Api\Event\EventHandler;
use Bedriox\Api\Event\PostEvent;

#[EventHandler]
public function onPostEvent(PostEvent $event): void
{
    // Keep listener work bounded and use public capabilities only.
}

View exact source ↗