symfony dependency injection at run-time

前端 未结 0 426
迷失自我
迷失自我 2021-02-13 23:27

Hello is there a way to do dependency injection at runtime. For example, I have service 1, and I want to inject service2 or service 3 depending on some logical context? Maybe by

相关标签:
回答
  • 消灭零回复
提交回复
热议问题