Non-existent service “request_stack”

后端 未结 2 1383
失恋的感觉
失恋的感觉 2021-01-18 05:09

I am writing a Symfony 2.6 application and I\'ve encountered a problem when trying to inject the RequestStack into a service. What I want is to be able to get the current re

2条回答
  •  一向
    一向 (楼主)
    2021-01-18 05:51

    Use php app/console container:debug or debug:container for 2.6 to check if the service exists , and maybe you are using the wrong version of symfony

提交回复
热议问题