In the paragraph Synchronizing the Write Model with the Read Model (sorry, my ebook reader doesn't support page numbers), the method call $projection->eventType() does not adhere to the interface definition $projection->listensTo():
namespace Infrastructure\Projection;
class Projector
{
//...
public function register(array $projections)
{
foreach ($projections as $projection) {
$this->projections[$projection->eventType()] = $projection;
// should be $this->projections[$projection->listensTo()] = $projection;
}
}
//...
}
In the paragraph
Synchronizing the Write Model with the Read Model
(sorry, my ebook reader doesn't support page numbers), the method call$projection->eventType()
does not adhere to the interface definition$projection->listensTo()
: