How to register a new class on Kernel Request Event