Replies: 2 comments
-
There might be issues (unexpected behaviors) with classes not following the Magento Namespace pattern. Although, there is nothing which prevents you from using the composer classmap currently and gaining some statistics and possible issues which only become clear in real usage. So if we can help with anything related to testing this, keep us posted. |
Beta Was this translation helpful? Give feedback.
-
Okay. Thank you for the insight.
Could you elaborate on this, please?
I did not think about people using the software as a download. That could be a problem.
How would such a package look like? Just a
I only got around to mention this issue, because there are some modules out there that try to implement autoloading themselves, because they deploy Code in I know that this is not an issue of
Realized that while typing, too :D |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I was wondering what is stopping us from using the Composer Autoloader for everything in OpenMage and get rid of the
Varien_Autoload
completely.This should give us a boost in performance on production, right? Since on prod we would have a class map and no potentially failing
includes
.And since all modules are placed in
app/code
and/orlib
(also the paths that are set as include paths inapp/Mage.php
) on installation, which is done bycomposer
most of the time, we would be able to use classmap locally, too.Only downside would be, that local development would get a little bit more annoying, since you'd have to run
composer dump-autoload
all the time after creating a new file.Since the composer autoloader comes first when trying to find a class (at least in the current setup), we could use the classmap AND the
Varien_Autoload
. This should only stay for a grace period though, since it gets pretty confusing fast.What do you guys think?
Edit: Just found another issue. We have the possible overwrites of
community
andcore
classes inlocal
, which could potentially confusecomposer
.This can be solved by defining the folders in
classmap
in the right order:Beta Was this translation helpful? Give feedback.
All reactions