added compatibility with Symfony v2.0.*