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

@ -72,6 +72,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
* domain policy files other than the master policy file located in the target domain's root and named