私はたくさんの議論を必要とする道を持っています:
{{ path('work_path', {'username': work.user.username, 'work_id': work.id, 'work_slug': work.slug}) }}
どこでもこの長い線を使用する代わりに、このパス専用の特定の機能が必要です。
Is there a way to call the path()
function from my custom function (besides passing the Router service to the extension class)?