public function ImageToolkitManager::__construct

Constructs the ImageToolkitManager object.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations,

File

drupal/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitManager.php, line 26
Contains \Drupal\system\Plugin\ImageToolkitManager.

Class

ImageToolkitManager
Manages toolkit plugins.

Namespace

Drupal\system\Plugin

Code

public function __construct(\Traversable $namespaces) {
  $this->discovery = new AnnotatedClassDiscovery('ImageToolkit', $namespaces);
  $this->factory = new DefaultFactory($this->discovery);
}