When an installed extension uses a library that is installed via composer into /libraries/vendor, then an upgrade to Joomla 3.4.0 overwrites autoload.php and the /composer folder. The earlier installed extension doesn't work anymore.
When updating Joomla an existing library that is installed with composer should still work.
Labels |
Added:
?
|
Yes, I'll change my Composer stuff, although it was working for some years now. Should have tested this 3.4 update first on a non-production server. Bummer.
I assume Joomla 3.4 uses this and it is not just for future use, so it would probably break something in Joomla if I would overwrite those files with my old ones. I'll try, but if you can tgell it, it saves me some trouble to try. Thanks for the reaction anyway.
I'll make my own folder in /libraries and put my /vendor and other composer stuff in that. But I have the feeling it is the opposite of what the intention of composer was.
Issue can be closed.
Eventually the intent is to make that integratable with extensions. Just not quite there yet.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-03-02 17:41:17 |
We aren't yet at a point where this is a feasible workflow. We aren't shipping the composer.json or composer.lock files with production packages and when we run updates for core, these files get regenerated for the core dependencies. I'm not sure what we can do short of pulling the full Composer API in as a dependency right now.
My workaround in the first extension I integrated Composer into is to just ship the extension with its own /vendor directory and Composer autoloader and load that within the extension (since the extension doesn't have any external uses like plugins where the objects may need to be present I can safely not merge this data to the base autoloader).