Update symfony, refactor calls to deprecated methods.