compatibility for symfony2 2.3

a few changes for compatibility with symfony2 2.3