Create a SlotMachineTrait for Silex