You are here

public function WishlistAssignment::__construct in Commerce Wishlist 8.3

Constructs a new WishlistAssignment object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\commerce_wishlist\WishlistManagerInterface $wishlist_manager: The wishlist manager.

File

src/WishlistAssignment.php, line 58

Class

WishlistAssignment
Default wishlist assignment implementation.

Namespace

Drupal\commerce_wishlist

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, ConfigFactoryInterface $config_factory, WishlistManagerInterface $wishlist_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->configFactory = $config_factory;
  $this->wishlistManager = $wishlist_manager;
}