Second iteration - for symfony2 integration