*/ class SetDefaultCSPHeader extends InstallAction { /** * @inheritdoc */ public function __invoke($params) { /** @var SettingsStorage $settingsStorage */ $settingsStorage = $this->getServiceLocator()->get(SettingsStorage::SERVICE_ID); $settingsStorage->set(CspHeaderSettingsInterface::CSP_HEADER_SETTING, 'self'); } }