You are here

public function MiconDiscoveryManager::__construct in Micon 8

Same name and namespace in other branches
  1. 2.x src/MiconDiscoveryManager.php \Drupal\micon\MiconDiscoveryManager::__construct()

Constructs a MiconDiscoveryManager object.

Parameters

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

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

Overrides DefaultPluginManager::__construct

File

src/MiconDiscoveryManager.php, line 48

Class

MiconDiscoveryManager
Provides the default micon.icon manager.

Namespace

Drupal\micon

Code

public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, CacheBackendInterface $cache_backend) {

  // Add more services as required.
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this
    ->setCacheBackend($cache_backend, 'micon.discovery', array(
    'micon.discovery',
  ));
}