Allow Symfony 2.4 and higher