For Flarum extension developers, for core discussions visit flarum/internals. Feel free to fire your question immediately, don't ask whether you can ask, just ask.
if (is_string($name) && !get_class($name)) return
it kept erroring that get_class
wasn't receiving a string
get_class($name)
for the ReflectionClass instance, then getting its namespace name and checking it contains Flarum\Event
, etc
init
for constructor and config
when it's done and you can add listeners and the like