From a0d1bbf37abfcde3ff676dcf1c9fc913025cfcb6 Mon Sep 17 00:00:00 2001 From: "Paragon Initiative Enterprises, LLC" Date: Mon, 20 Nov 2017 11:18:59 -0500 Subject: [PATCH] Alias methods for naming convention consistency. --- src/CSPBuilder.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/CSPBuilder.php b/src/CSPBuilder.php index 3b2113c..7ed014c 100644 --- a/src/CSPBuilder.php +++ b/src/CSPBuilder.php @@ -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.