In this example I can't change the array USERROLES inside the hive by reference:\F3::set('USERROLES', array());$a = &\F3::ref('USERROLES');$a[$permissionName] = $value;
Using \Base:instance() it works:
$f3 = \Base::instance();$f3->set('USERROLES', array());$a = &$f3->ref('USERROLES');$a[$permissionName] = $value;
but.......why?
\Base:instance() instead ;)
//! Legacy mode enabler
class F3 {