adapted form to new symfony versiopn