0
我想將setter注入添加到現有服務。基礎服務定義如下:將setter注入添加到現有服務
[container] Information for service doctrine.orm.default_entity_manager
Service Id doctrine.orm.default_entity_manager
Class Doctrine\ORM\EntityManager
Tags -
Scope container
Public yes
我已經覆蓋了服務類參數中config.yml
文件中使用我自己的類裏面加setExample()
方法的基類。服務定義現在看起來像:
[container] Information for service doctrine.orm.default_entity_manager
Service Id doctrine.orm.default_entity_manager
Class MyCustom\EntityManager
Tags -
Scope container
Public yes
如何修改/覆蓋此服務配置,以添加自己的setter注入在自己services.yml
文件?