You are here

public function DevelDumperManager::__construct in Devel 8

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

Constructs a DevelDumperPluginManager object.

Parameters

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

\Drupal\Core\Session\AccountProxyInterface $account: The current account.

\Drupal\devel\DevelDumperPluginManagerInterface $dumper_manager: The devel dumper plugin manager.

File

src/DevelDumperManager.php, line 47

Class

DevelDumperManager
Class DevelDumperManager.

Namespace

Drupal\devel

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountProxyInterface $account, DevelDumperPluginManagerInterface $dumper_manager) {
  $this->config = $config_factory
    ->get('devel.settings');
  $this->account = $account;
  $this->dumperManager = $dumper_manager;
}