Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list of rewritten controllers to dev:module:rewrite:list command #992

Open
7ochem opened this issue Jun 15, 2018 · 0 comments
Open

Add list of rewritten controllers to dev:module:rewrite:list command #992

7ochem opened this issue Jun 15, 2018 · 0 comments

Comments

@7ochem
Copy link

7ochem commented Jun 15, 2018

I would like to have the controller rewrites to also be listed under the dev:module:rewrite:list command.

I know I could also get that info from running n98-magerun.phar config:dump frontend/routers, but that is pretty hard to read.

Right now I'm manually appending the controllers to my findings from the dev:module:rewrite:list command by running the following:

$ ./n98-magerun.phar dev:cons
>>> foreach(Mage::getConfig()->getNode()->xpath('//routers/*/args/modules/../..') as $c) {
... echo "controllers\t" . $c->args->module . "\t" . $c->args->frontName . "\t" . implode(', ', array_keys((array)$c->args->modules)) ."\n";
... }
controllers	Mage_Cms	cms	Vendor_OverrideCms
controllers	Mage_Checkout	checkout	Idev_OneStepCheckout
controllers	Mage_Contacts	contacts	VladimirPopov_WebForms
controllers	Mage_Adminhtml	admin	Mage_Index, Mage_Paygate, Mage_Paypal, widget, oauth, Mage_Authorizenet, Mage_Bundle, captcha, Mage_Centinel, Mage_Compiler, searchindex, connect, Mage_Downloadable, Mage_GoogleShopping, importexport, api2, Mage_PageCache, Amasty_Base, Amasty_GiftCard
=> null

(:point_up_2: I could make a script out of that and run through dev:eval @ #990 😄)

@7ochem 7ochem changed the title Add list or rewritten controllers to dev:module:rewrite:list command Add list of rewritten controllers to dev:module:rewrite:list command Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants