Skip to content

Add Listener\ Initializable interface #172

@alanbem

Description

@alanbem
interface Initializable
{
     public function initialize(): void;
}
class OrdersProjector implements Listener, Listener\Initializable
{
	
     public function initialize(): void
     {
          // for example create database table, during first run
     }
}

The method initialize would be run only once when subscription starts to process first event. It should not run after reset

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions