How to refer to parameters.yml in services.yml?
you can ommit ...
imports: - { resource: "parameters.yml" }parameters:
... parameters.yml should automatically be parsed and the parameters should be available for injection if you surround them with %
.
Try:
services: my.form.type: class: My\Bundle\Form\Type\MyType arguments: ["%test%"] alias: my_form_type