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

Where Mage_Core_Model_Config::applyClassRewrites($className) method is #263

Closed
SunshineTech opened this issue Mar 21, 2013 · 1 comment
Closed

Comments

@SunshineTech
Copy link

In the document:

Direct Class Name Rewrite Support
The new feature of rewriting classes by direct class name was added in Magento 2.

The implementation involved two steps:

A new Mage_Core_Model_Config::applyClassRewrites($className) method was introduced. This method receives a direct class name, checks Magento config for rewrites, and returns either the original class name or the name of the rewriting class.
The new rewrites location is now checked in the config file in the /global/rewrites node. The nodes inside that container match rewritten classes to their rewrites.
For example, to instruct Magento to create an object of the class My_Module_Model_Url whenever Mage_Core_Model_Url is requested:

But in the Mage_Core_Model_Config, there is no applyClassRewrites method.

@SunshineTech
Copy link
Author

I'm sorry, I didn't see the changelog. It had been replaced by DI.

okorshenko pushed a commit that referenced this issue Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant