Symphony 2.4 Compatibility

According to https://github.com/symphonycms/symphony-2/wiki/Migration-Guide-to-2.4-for-Developers#functions