-
- Downloads
Throw an exception when loading a plugin that is already loading.
If a plugin used an API in its constructor that also loading the same plugin, the caching mechanism of `PluginManager#getCachedPlugin` were bypassed and the protection against instantiating a plugin class more than once was disabled. This fix throws a better exception to explain the situation and provides a better way to use for example the `Navigation` API inside of a constructor. Fixes #4317
Showing
- lib/exceptions/PluginAlreadyLoadingException.php 19 additions, 0 deletionslib/exceptions/PluginAlreadyLoadingException.php
- lib/plugins/engine/PluginEngine.php 1 addition, 0 deletionslib/plugins/engine/PluginEngine.php
- lib/plugins/engine/PluginManager.php 8 additions, 2 deletionslib/plugins/engine/PluginManager.php
Please register or sign in to comment