public function __construct(EntityManager $entityManager, EventLog $eventLog, CommandBusFactory $commandBusFactory)
{
$this->orders = new ORMOrders($entityManager);
$this->payments = new ORMPayments($entityManager);
$this->transactionFactory = new ORMFactory($entityManager);
$this->commandBus = $this->createCommandBus($commandBusFactory, [new TransactionExtension($this->transactionFactory)]);
$this->eventLog = $eventLog;
$this->eventLog->subscribeFor(CustomerPlacedOrder::class, new NewOrderListener($this->orders));
}