Moved closure from Bootstrap to Class

Now Module.php is cacheable with opcode cache