Support symfony >= 2.4