Skip to main content

Provider Registration

💡 If you're already using the DomainFlow Application class, the System Events package will automatically integrate with it when you register the SystemEventsServiceProvider.

Registering the Service Provider​

If you're using DomainFlow's Application container (core package), register the service provider like so:

use DomainFlow\SystemEvents\Provider\SystemEventsServiceProvider;

$app->registerProvider(new SystemEventsServiceProvider());

Once registered, the system event processor will automatically:

  • Replay any buffered events
  • Listen to all future events via wildcard
  • Write them to disk using your preferred format