getData('type'); $rules = []; foreach ($config['aclRules'] as $rule) { if ($rule['role'] == $type) { $rules[] = $rule; } } self::$instance = new Acl($rules); } return self::$instance; } }