In Architectural Styles > Synchronizing the Write Model with the Read Model, in the code after "The following code shows how the flow between the projector and the events would appear", line 25 should be:
$projector->project($events);
instead of
$projector->project($event);
And same in the next example with amqplib (line 31).
In Architectural Styles > Synchronizing the Write Model with the Read Model, in the code after "The following code shows how the flow between the projector and the events would appear", line 25 should be:
$projector->project($events);
instead of$projector->project($event);
And same in the next example with amqplib (line 31).