Port of Ruler rules engine to a ZF2 module