netz98 / n98-magerun

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
http://magerun.net/
Other
1.44k stars 400 forks source link

Feature Request: show existing routes #253

Open Flyingmana opened 10 years ago

Flyingmana commented 10 years ago

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

cmuench commented 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?

colinodell commented 8 years ago

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:

2015-11-04_15-40-27

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:

ktomk commented 8 years ago

@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

taoufiqaitali commented 5 years ago

can we have same option in magento 2 ? thanks