up to symfony 2.4.*