Compatibility with Symfony 2.1 with event scubscriber