Dumplie\Inventory\Tests\Doctrine\ORMInventoryContext::__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->products = new ORMProducts($entityManager);
        $this->commandBus = $this->createCommandBus($commandBusFactory, $eventLog, [new TransactionExtension(new ORMFactory($entityManager))]);
    }
ORMInventoryContext