ReportingHandlerPluginManager.php in Content-Security-Policy 8
File
src/ReportingHandlerPluginManager.php
View source
<?php
namespace Drupal\csp;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class ReportingHandlerPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/CspReportingHandler', $namespaces, $module_handler, 'Drupal\\csp\\Plugin\\ReportingHandlerInterface', 'Drupal\\csp\\Annotation\\CspReportingHandler');
$this
->setCacheBackend($cache_backend, 'csp_reporting_handler_plugins');
}
}