You are here

public function LibraryDiscoveryParser::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php \Drupal\Core\Asset\LibraryDiscoveryParser::__construct()
  2. 9 core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php \Drupal\Core\Asset\LibraryDiscoveryParser::__construct()

Constructs a new LibraryDiscoveryParser instance.

Parameters

string $root: The app root.

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

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

\Drupal\Core\Asset\LibrariesDirectoryFileFinder $libraries_directory_file_finder: The libraries directory file finder.

\Drupal\Core\Extension\ExtensionPathResolver $extension_path_resolver: The extension path resolver.

File

core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php, line 80

Class

LibraryDiscoveryParser
Parses library files to get extension data.

Namespace

Drupal\Core\Asset

Code

public function __construct($root, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager, StreamWrapperManagerInterface $stream_wrapper_manager, LibrariesDirectoryFileFinder $libraries_directory_file_finder, ExtensionPathResolver $extension_path_resolver) {
  $this->root = $root;
  $this->moduleHandler = $module_handler;
  $this->themeManager = $theme_manager;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->librariesDirectoryFileFinder = $libraries_directory_file_finder;
  $this->extensionPathResolver = $extension_path_resolver;
}