Constructs a new AssetResolver instance.
Parameters
\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.
\Drupal\Core\Asset\LibraryDependencyResolverInterface $library_dependency_resolver: The library dependency resolver.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
\Drupal\Core\Asset\AssetCollectionOptimizerInterface $css_collection_optimizer: The CSS collection optimizer.
\Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer: The JS collection optimizer.
\Drupal\Core\State\StateInterface $advagg_files: The AdvAgg file status state information storage service.
File
-
src/
Asset/ AssetResolver.php, line 67
Class
- AssetResolver
- The default asset resolver.
Namespace
Drupal\advagg\AssetCode
public function __construct(LibraryDiscoveryInterface $library_discovery, LibraryDependencyResolverInterface $library_dependency_resolver, ModuleHandlerInterface $module_handler, ThemeManagerInterface $theme_manager, LanguageManagerInterface $language_manager, CacheBackendInterface $cache, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer, StateInterface $advagg_files) {
$this->libraryDiscovery = $library_discovery;
$this->libraryDependencyResolver = $library_dependency_resolver;
$this->moduleHandler = $module_handler;
$this->themeManager = $theme_manager;
$this->languageManager = $language_manager;
$this->cache = $cache;
$this->cssCollectionOptimizer = $css_collection_optimizer;
$this->jsCollectionOptimizer = $js_collection_optimizer;
$this->advaggFiles = $advagg_files;
}