/**
* @param CommandBusFactory $commandBusFactory
* @param EventLog $eventLog
* @return CommandBus
*/
protected function createCommandBus(CommandBusFactory $commandBusFactory, EventLog $eventLog, array $commandExtension = []) : CommandBus
{
return $commandBusFactory->create([CreateProduct::class => new CreateProductHandler($this->products), PutBackProductToStock::class => new PutBackProductToStockHandler($this->products), RemoveProductFromStock::class => new RemoveProductFromStockHandler($this->products)], $commandExtension);
}