You are here

public function ComponentDiscovery::__construct in Lightning Core 8.3

Same name and namespace in other branches
  1. 8.5 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::__construct()
  2. 8.4 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::__construct()

ComponentDiscovery constructor.

Parameters

string $app_root: The application root directory.

File

src/ComponentDiscovery.php, line 45

Class

ComponentDiscovery
Helper object to locate Lightning components and sub-components.

Namespace

Drupal\lightning_core

Code

public function __construct($app_root) {
  $this->discovery = new ExtensionDiscovery($app_root);
}