-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Added methods to access different sessions #4362
base: main
Are you sure you want to change the base?
Conversation
wouldn't it be be easier to just have Mage::getAdminSession() Mage::getCoreSession(), it seem it would have less impact |
While I like @fballiano's idea more, I'm not sure I really see the need for this change at all? There are tons of other models called with |
With copilot, and especially cursor AI, more and more typing are done by them, hence less and lees need for this PR. |
What do you mean? Add helper methods for "core" and "admin" sessions only (and leave everything else at it is)?
Absolutly aggree! E.g. there is Yes. This can also be "fixed/improved" by adding
I dont use any of that. Now ... in phpstorm i can use |
I don't understand though... The Why then not also special methods for getting regular models too? $ git grep "Mage::getModel('catalog/product')" | wc -l
147 |
Yes, Its only a wrapper. (that was the idea of it 😄)
+1 for |
Personally I am just not a fan... For one, it's adding references to different modules in Mage_Core. Also, where does it end? Which models are important enough and which ones aren't? |
True. But traits are extendable. We can still split it into modules. (?)
I think i have covered ALL session types . |
Description (*)
...w/o have to type
Mage::getSingleton('some/session')
...