|
2
|
| Mayor of the Plattenbaus · 技术社区 · 8 年前 |
|
|
1
1
这是可能的,但您需要在块中注入额外的服务-
|
|
2
0
感谢Jakub Krawczyk和导师,我找到了这一页: Getting instance of container in custom sonata block ... 这使我找到了从execute()方法中获取与块相关的页面的另一种方法。因此,我现在有以下代码,可以很好地为我服务:
再次感谢所有相关人员。 |