Which file is used to add a custom router class to the router list?
A custom router is added to Magento\Framework\App\RouterList through dependency-injection configuration in the module’s etc/frontend/di.xml file. routes.xml maps a front name to a module for standard routing; it does not register a custom router class.
Magento\Framework\App\RouterList
etc/frontend/di.xml
routes.xml
Community Discussion