contao / manager-plugin

Contao Manager Plugin
GNU Lesser General Public License v3.0
4 stars 9 forks source link

Fix the PluginLoader effectively being immortal #46

Closed Toflar closed 2 years ago

Toflar commented 2 years ago

This fixes updating from 2.11.* or < 2.11 to the main branch. It also shows why it's so important we changed the fact that we replace the PluginLoader on every update because it was effectively immortal. When you run composer update or composer install the plugins are loaded into the process memory so what will happen is that it will always dump the previous version which might cause a lot of trouble. This is fixed now that we do not replace the PluginLoader anymore but use a separate, generated file but this PR is required to fix the update from previous versions to the latest one.

leofeyer commented 2 years ago

Thank you @Toflar.