Generic utilities for Symfony2 apps