Applied changes of behavior callback signature from Cake 2.4.1