Added a method to clear the allowedAccess array.

This commit is contained in:
Gerrit Drost 2014-05-23 16:22:00 +02:00
parent a1c27ac91b
commit 5ad295e02a

View File

@ -71,6 +71,18 @@ class FlashPolicy implements MessageComponentInterface {
return $this; 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 * site-control defines the meta-policy for the current domain. A meta-policy specifies acceptable