summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2015-07-10 13:51:24 -0500
committerChris Cornutt <enygma@phpdeveloper.org>2015-07-10 13:51:24 -0500
commitd35657b0a156a539654544b28213cea98e7435e9 (patch)
treedddfb0db398855f4b9408351e13434bb1904dbea
parentd13720937c7aa9ae3563fa1aaac5b8a102328d5e (diff)
downloadgatekeeper-d35657b0a156a539654544b28213cea98e7435e9.zip
gatekeeper-d35657b0a156a539654544b28213cea98e7435e9.tar.gz
gatekeeper-d35657b0a156a539654544b28213cea98e7435e9.tar.bz2
Adding method to clear restrictions on authenticate evaluation
-rw-r--r--src/Psecio/Gatekeeper/Gatekeeper.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/Gatekeeper.php b/src/Psecio/Gatekeeper/Gatekeeper.php
index 1f89a9c..882cc2e 100644
--- a/src/Psecio/Gatekeeper/Gatekeeper.php
+++ b/src/Psecio/Gatekeeper/Gatekeeper.php
@@ -214,6 +214,14 @@ class Gatekeeper
}
/**
+ * Clear out the current restrictions
+ */
+ public static function clearRestrictions()
+ {
+ self::$restrictions = [];
+ }
+
+ /**
* Load the variables using the .env handling
*
* @param string $envPath Path to the .env file