The simplest way to pass services or configuration to your form is via form options.
Suppose you need to access the doctrine.orm.entity_manager service so that you
can make a query. First, allow (in fact, require) a new entity_manager option
to be passed to your form: