Skip to main content

Questions tagged [di.xml]

0 votes
1 answer
42 views

In Magento 2, I want to set custom route, like after baseurl/custom-route/any url it should be redirected to homepage or base url. Here, I had tried to create type of RouterList and extend ...
Aayushi Doshi's user avatar
0 votes
1 answer
103 views

I understand that Magento will read all di.xml files and the output will be an array. I want to know where this code is so I can debug and dig deeper into it. Any help? Thanks.
Shou's user avatar
  • 170
3 votes
0 answers
184 views

I tried this solution but the arguments are empty when I debug the command class. It should be possible to create command classes by using a virtualType, no? The constructor arguments are empty in ...
den3988's user avatar
  • 31
0 votes
0 answers
383 views

I have a third party module that has this class app/code/Vendor/ModuleName/CustomerData/Popup.php and that class is defined in the frontend/di.xml file like this <type name="Magento\...
Korbin's user avatar
  • 228
0 votes
1 answer
54 views

I am fairly new to Magento and following a tutorial on Udemy to learn how to develop on Magento 2. I am attempting to overwrite the ProductRepositoryInterface, however whenever I add the preference ...
Peter Stuart's user avatar
1 vote
1 answer
195 views

My di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
Tom Aguilera's user avatar
3 votes
1 answer
570 views

How to override below file in module ? Magento\Sales\Model\Order\Email\Sender\CreditmemoSender.php
devhs's user avatar
  • 537
2 votes
1 answer
636 views

I've edited this function below and i'm overriding this method in app/code/FF/Customer/Model/EmailNotification.php natively this file exists in vendor/magento/module-customer/Model/EmailNotification....
Singleton's user avatar

15 30 50 per page