Posts

Showing posts from February, 2020

Understand Magento type node and how to use for own benefits.

Hey folks, Today we will going to learn fundamental of < type /> node which used in di.xml. So let's start without time waste let's talk about <type />  node. To understand this concept we will use an example for that we will create sample module. So let's do this together.  If you already know how to create a module you can skip this intro. To create a module there is two files are required. registration.php module.xml So let's create a registration.php path :  app/code/Extrembler/Base \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Extrembler_Base', __DIR__ ); Second we need to create module.xml path : app/code/Extrembler/Base/etc <?xml version="1.0"?> <!-- /** * @category Extrembler * @package Extrembler_Base * @author Extrembler <gaurangpadhiyar1993@gmail.com> */ --> <config xmlns:xsi="http://www