public function addLoadedPlugin($pluginName, Plugin $newPlugin) { $this->resetTransientCache(); $this->loadedPlugins[$pluginName] = $newPlugin; }