From 5ad295e02ad35625e4ee3eea904f794ea7140de1 Mon Sep 17 00:00:00 2001 From: Gerrit Drost Date: Fri, 23 May 2014 16:22:00 +0200 Subject: [PATCH] Added a method to clear the allowedAccess array. --- src/Ratchet/Server/FlashPolicy.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Ratchet/Server/FlashPolicy.php b/src/Ratchet/Server/FlashPolicy.php index 4997362..4a1b8bd 100644 --- a/src/Ratchet/Server/FlashPolicy.php +++ b/src/Ratchet/Server/FlashPolicy.php @@ -71,6 +71,18 @@ class FlashPolicy implements MessageComponentInterface { return $this; } + + /** + * Removes all domains from the allowed access list. + * + * @return \Ratchet\Server\FlashPolicy + */ + public function clearAllowedAccess() { + $this->_access = array(); + $this->_cacheValid = false; + + return $this; + } /** * site-control defines the meta-policy for the current domain. A meta-policy specifies acceptable