Building in security capabilities.
This commit is contained in:
parent
0a6c124302
commit
9fe5ce72d4
7 changed files with 282 additions and 29 deletions
|
@ -115,14 +115,12 @@ class Config extends Object
|
|||
*
|
||||
* Prohibits the direct modification of module variables.
|
||||
*
|
||||
* @param string $name name of the variable to be set
|
||||
* @param mixed $value value of the variable to be set
|
||||
* @return boolean false
|
||||
* @param string $name name of the variable to be set
|
||||
* @param mixed $value value of the variable to be set
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
trigger_error('Cannot set config variables directly', E_USER_ERROR);
|
||||
return false;
|
||||
throw new Exception('Cannot set config variables directly', E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue