Skip to content

Add Listener\ Initializable interface #172

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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