added compatibility with Symfony v2.1.*