You are here

public function RequestSubscriber::__construct in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_user_sync/src/EventSubscriber/RequestSubscriber.php \Drupal\crm_core_user_sync\EventSubscriber\RequestSubscriber::__construct()

Constructs event subscriber.

Parameters

\Drupal\Core\Session\AccountProxyInterface $current_user: Current logged in user.

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

\Drupal\crm_core_user_sync\CrmCoreUserSyncRelationInterface $relation_service: The relation service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

File

modules/crm_core_user_sync/src/EventSubscriber/RequestSubscriber.php, line 58

Class

RequestSubscriber
CRM Core User Synchronization event subscriber.

Namespace

Drupal\crm_core_user_sync\EventSubscriber

Code

public function __construct(AccountProxyInterface $current_user, ConfigFactoryInterface $config_factory, CrmCoreUserSyncRelationInterface $relation_service, EntityTypeManagerInterface $entityTypeManager) {
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
  $this->relationService = $relation_service;
  $this->entityTypeManager = $entityTypeManager;
}