symfony <2.6 does not support closures in setAllowedValues