I'm using SS3.1, how can I replace the SecurityAdmin and MemberImportForm with my own custom methods to create a custom Member CSV import? I've tried
Object::useCustomClass('SecurityAdmin','CustomSecurityAdmin');
Object::useCustomClass('MemberImportForm','CustomMemberImportForm');
and
Object::add_extension('MemberImportForm','CustomMemberImportForm');
Object::add_extension('SecurityAdmin','CustomSecurityAdmin');
I've also attempted .yml settings, but I'm not very knowledgeable about YAML.
but neither of them work. Other than hacking the framework directly, is there a more elegant solution?