Fix EZP-20289 Symfony CSRF protection not integrated with legacy

This is the legacy side of things, Symfony aligninment on how csrf is dealt with.