You are here

public function DomainNegotiator::__construct in Domain Access 8

Constructs a DomainNegotiator object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack object.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

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

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

File

domain/src/DomainNegotiator.php, line 90

Class

DomainNegotiator

Namespace

Drupal\domain

Code

public function __construct(RequestStack $requestStack, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->requestStack = $requestStack;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
}