I'm calling the controller from Twig to the following expression:
{{ render(controller("Bundle:Holidays:HolidaysPerMonth", { 'id': '{{ "now"|date("m") }}' })) }}
The problem I have is that the driver does not recognize the value of the variable, which corresponds to the current month (two digits). If I change { 'id': '{{ "now"|date("m") }}' } for { 'id': '05' } the controller already recognizes the variable and the result is obtained correctly, so the problem is how I can pass that value.
... { 'id': ("now"|date("m")) } ...{{ render(controller("Bundle:Holidays:HolidaysPerMonth", { 'id': "now"|date("m") })) }}