Dumplie\Customer\Tests\Doctrine\ORMCustomerContext::__construct PHP Method

__construct() public method

public __construct ( EntityManager $entityManager, Dumplie\SharedKernel\Application\EventLog $eventLog, Dumplie\SharedKernel\Tests\Context\CommandBusFactory $commandBusFactory )
$entityManager Doctrine\ORM\EntityManager
$eventLog Dumplie\SharedKernel\Application\EventLog
$commandBusFactory Dumplie\SharedKernel\Tests\Context\CommandBusFactory
    public function __construct(EntityManager $entityManager, EventLog $eventLog, CommandBusFactory $commandBusFactory)
    {
        $this->carts = new ORMCarts($entityManager);
        $this->products = new DbalProducts($entityManager->getConnection());
        $this->checkouts = new ORMCheckouts($entityManager);
        $this->orders = new ORMOrders($entityManager);
        $this->commandBus = $this->createCommandBus($eventLog, $commandBusFactory, [new TransactionExtension(new ORMFactory($entityManager))]);
    }
ORMCustomerContext