public function ArchiverManager::__construct

Constructs a ArchiverManager 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/lib/Drupal/Core/Archiver/ArchiverManager.php, line 27

Class

ArchiverManager
Archiver plugin manager.

Namespace

Drupal\Core\Archiver

Code

public function __construct(\Traversable $namespaces) {
  $this->discovery = new AnnotatedClassDiscovery('Archiver', $namespaces);
  $this->discovery = new AlterDecorator($this->discovery, 'archiver_info');
  $this->discovery = new CacheDecorator($this->discovery, 'archiver_info');
}