Fix createTempFile for Symfony 2.2

dump file was added in 2.3