Hello all,
What would be the proper way of overriding specific PHP classes in core? Specifically, I want to change the Flarum\Core\Validator\UserValidator
class to allow spaces in usernames. That's done easily enough by editing the regex in the core file, but that's obviously not a good solution. Instead, I want to make this change in an extension. Any pointers on how to go about that?