Added support for Symfony 2.2 and newer