public function LibraryPolicyBuilder::__construct in Content-Security-Policy 8
Constructs a new Library Parser.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache bin.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The Module Handler service.
\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The Theme Handler service.
\Drupal\Core\Asset\LibraryDiscoveryInterface $libraryDiscovery: The Library Discovery Collector service.
File
- src/
LibraryPolicyBuilder.php, line 69
Class
- LibraryPolicyBuilder
- Service to build policy information for libraries.
Namespace
Drupal\cspCode
public function __construct(CacheBackendInterface $cache, ModuleHandlerInterface $moduleHandler, ThemeHandlerInterface $themeHandler, LibraryDiscoveryInterface $libraryDiscovery) {
$this->cache = $cache;
$this->moduleHandler = $moduleHandler;
$this->themeHandler = $themeHandler;
$this->libraryDiscovery = $libraryDiscovery;
}