Open Flyingmana opened 10 years ago
@Flyingmana It's currently possible to list all defined routes with config:dump command.
n98-magerun.phar config:dump frontend/routers
Can you explain what the command should further do?
I'd like to see a command which lists the partial URL and the controller that would be used. For example:
Route Name | Controller Name | URL | Controller |
---|---|---|---|
catalog | category | /catalog/category/ | Mage_Catalog_CategoryController |
catalog | product | /catalog/product/ | Mage_Catalog_ProductController |
adminhtml | dashboard | /admin/dashboard/ | Mage_Adminhtml_DashboardController |
adminhtml | sales_order | /admin/sales_order/ | Enterprise_SalesArchive_Adminhtml_Sales_OrderController |
Somewhat mirroring what the Magneto_Debug toolbar shows in its Controller tab:
But for all possible routes.
The config:dump
lists the configuration but not how those routes are interpreted and used by the router. Being able to list the actual base URLs and corresponding class would be a huge help when debugging routing issues.
Other possible features:
@colinodell for your last bullet-point, please see this existing magerun extension: MageRun Addons by peterjaap, it has the command you're looking for: https://github.com/peterjaap/magerun-addons#find-extensions-that-use-old-style-admin-routing-which-is-not-compatible-with-supee-6788-and-magento-1922
can we have same option in magento 2 ? thanks
In Symfony its possible to list all existing routes.
As magento works a bit different, I would suggest to only list module routes from config.xml