cleanup for symfony2