You are here

public function UserDataCollector::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/UserDataCollector.php \Drupal\webprofiler\DataCollector\UserDataCollector::__construct()
  2. 8.2 webprofiler/src/DataCollector/UserDataCollector.php \Drupal\webprofiler\DataCollector\UserDataCollector::__construct()
  3. 4.x webprofiler/src/DataCollector/UserDataCollector.php \Drupal\webprofiler\DataCollector\UserDataCollector::__construct()

Parameters

\Drupal\Core\Session\AccountInterface $currentUser:

\Drupal\Core\Entity\EntityManagerInterface $entityManager:

\Drupal\Core\Config\ConfigFactoryInterface $configFactory:

\Drupal\Core\Authentication\AuthenticationCollectorInterface $providerCollector:

File

webprofiler/src/DataCollector/UserDataCollector.php, line 48

Class

UserDataCollector
Class UserDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(AccountInterface $currentUser, EntityManagerInterface $entityManager, ConfigFactoryInterface $configFactory, AuthenticationCollectorInterface $providerCollector) {
  $this->currentUser = $currentUser;
  $this->entityManager = $entityManager;
  $this->configFactory = $configFactory;
  $this->providerCollector = $providerCollector;
}