R
R
Roman Hinex2015-02-02 13:38:18
symfony
Roman Hinex, 2015-02-02 13:38:18

Symfony 2: how to use service inside YML config?

Are such constructions possible?

options:
                label: 'User'
                choices: @=service('service.params')->getUsers()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2015-02-02
@HiNeX

You can look at ExpressionLanguage, but IMHO it's better to fill select in the form builder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question