Learn how the right B2B CRM strategy speeds time to market, improves staff productivity, and increases customer visibility.
Join a community of developers and designers that innovate and drive growth for B2B businesses around the world.
Our collection of courses, training sessions, and tutorials on OroCRM's architecture and capabilities
Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.
Starting from March 1, 2020 the forum has been switched to the
mode. Please head to StackOverflow for support.
Thanks for your answer.
Initially I thought about the decoration approach but the think is that I want to add logic on “prepareItemsData” method. That’s why tried to replace the service.
I’m trying to replace a service using the first option you’ve suggested. It looks simple but somehow I cannot get it work. This is the service I’m trying to replace:
So, I created a “parameters.yml” file on “MyVendor\Bundle\MyBundle\Resources\config” with the following definition:
Then, registered it with:
Unfortunately it always use the original service and ignores mine.
Thanks in advance.