Questions tagged [di.xml]
The di.xml tag has no summary.
46 questions
0 votes
1 answer
42 views
Create cutom router for redirecting to homepage || Magento 2
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 ...
0 votes
1 answer
103 views
What is the file I have to debug to know how Magento load all file di.xml from all core module and custom module?
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.
3 votes
0 answers
184 views
Magento 2 Console command by using virtualTypes
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 ...
0 votes
0 answers
383 views
Override third party module customerData class defined in di.xml arguments
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\...
0 votes
1 answer
54 views
Blank page when trying use direct injection with ProductRepositoryInterface class
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 ...
1 vote
1 answer
195 views
I can't enable my module with di.xml in magento
My di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
3 votes
1 answer
570 views
Override Magento\Sales\Model\Order\Email\Sender\CreditmemoSender Magento 2
How to override below file in module ? Magento\Sales\Model\Order\Email\Sender\CreditmemoSender.php
2 votes
1 answer
636 views
Adding a BCC and CC (sales person) to the welcome email Magento 2
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....