duandi5328 2018-12-06 16:08
浏览 44

使用symfony覆盖系统继承在final类中调用的方法

A final method foo is in the parent class.

This final method calls a function bar.

I need to override bar in in child class.

But unfortunately, foo, when it calls bar, calls bar from the parent class, not the child class.

Note that the inheritence is done through overriding a service of a bundle (1)

  • 写回答

0条回答 默认 最新

    报告相同问题?