public function LocalStockUpdater::__construct in Commerce Stock 8
Constructs the local stock updater.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\commerce_stock\StockCheckInterface $checker: The local stock checker.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- modules/
local_storage/ src/ LocalStockUpdater.php, line 60
Class
- LocalStockUpdater
- Class LocalStockUpdater.
Namespace
Drupal\commerce_stock_localCode
public function __construct(Connection $database, StockCheckInterface $checker, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager) {
$this->database = $database;
$this->checker = $checker;
$this->eventDispatcher = $event_dispatcher;
$this->entityTypeManager = $entity_type_manager;
}