this should be compatible with symfony 2.2