2
|
Mayor of the Plattenbaus · 技术社区 · 7 年前 |
![]() |
1
1
这是可能的,但您需要在块中注入额外的服务-
|
![]() |
2
0
感谢Jakub Krawczyk和导师,我找到了这一页: Getting instance of container in custom sonata block ... 这使我找到了从execute()方法中获取与块相关的页面的另一种方法。因此,我现在有以下代码,可以很好地为我服务:
再次感谢所有相关人员。 |
![]() |
melokki · 访问条令实体中的一方关系时未定义索引 7 年前 |
![]() |
Tran Nicas · Symfony4条令不更新数据库 7 年前 |
![]() |
Nin · 在Symfony4中注册自定义条令类型 7 年前 |