Added a method to clear the allowedAccess array.
This commit is contained in:
parent
a1c27ac91b
commit
5ad295e02a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user