magento / devdocs

[Deprecated] Magento Developer Documentation
Open Software License 3.0
673 stars 1.77k forks source link

unfollowed standards #927

Closed ttnnkkrr closed 6 years ago

ttnnkkrr commented 7 years ago

Feedback on page: /guides/v2.1/extension-dev-guide/object-manager.html

Magento prohibits the direct use of the ObjectManager in your code because it hides the real dependencies of a class. See usage rules.

and then you say

You may notice in the Magento 2 codebase that some core classes still call the ObjectManager directly. This code needs porting or exist for backward compatibility purposes. They are not tacit endorsements of using the ObjectManager directly.

Yet you make it nearly impossible to build code without it by having poor documentation of you object model and by in your own sample codebase doing the very thing you recommend against

jeff-matthews commented 6 years ago

We understand your frustration, but it's still important that people understand that Magento code only uses this to support backward incompatible changes. No action on devdocs required.