If it already exists, do nothing
public addDirective ( string $key, mixed $value = null ) : self | ||
$key | string | |
$value | mixed | |
Résultat | self |
/** * Add a directive if it doesn't already exist * If it already exists, do nothing. * * @param string $directive * @param mixed $value * * @return self */ public function addDirective($directive, $value) { $this->csp->addDirective($directive, $value); return $this; }