Skip to content

Commit

Permalink
Alias methods for naming convention consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Nov 20, 2017
1 parent e9724f1 commit a0d1bbf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/CSPBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,30 @@ public function setSelfAllowed(string $directive = '', bool $allow = false): sel
return $this;
}

/**
* @see CSPBuilder::setAllowUnsafeEval()
*
* @param string $directive
* @param bool $allow
* @return self
*/
public function setUnsafeEvalAllowed(string $directive = '', bool $allow = false): self
{
return $this->setAllowUnsafeEval($directive, $allow);
}

/**
* @see CSPBuilder::setAllowUnsafeInline()
*
* @param string $directive
* @param bool $allow
* @return self
*/
public function setUnsafeInlineAllowed(string $directive = '', bool $allow = false): self
{
return $this->setAllowUnsafeEval($directive, $allow);
}

/**
* Set the Report URI to the desired string. This also sets the 'report-to'
* component of the CSP header for CSP Level 3 compatibility.
Expand Down

0 comments on commit a0d1bbf

Please sign in to comment.