You are here

public function CoreCspSubscriber::__construct in Content-Security-Policy 8

CoreCspSubscriber constructor.

Parameters

\Drupal\Core\Asset\LibraryDependencyResolverInterface $libraryDependencyResolver: The Library Dependency Resolver Service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The Module Handler service.

File

src/EventSubscriber/CoreCspSubscriber.php, line 48

Class

CoreCspSubscriber
Alter CSP policy for core modules and themes.

Namespace

Drupal\csp\EventSubscriber

Code

public function __construct(LibraryDependencyResolverInterface $libraryDependencyResolver, ModuleHandlerInterface $moduleHandler) {
  $this->libraryDependencyResolver = $libraryDependencyResolver;
  $this->moduleHandler = $moduleHandler;
}