Page MenuHomePhabricator

BlueSpiceExtensions should not call ExtensionRegistry::clearQueue()
Closed, ResolvedPublic

Description

clearQueue() is documented as not being intended to be used outside of the installer, and really, I can't think of a use-case of where it would be useful.

Can you please explain why you're using it so I can help figure out an alternative? Interacting directly with the queue is not recommended, and the internals of how the queue works is likely going to be changing in 1.29.

Event Timeline

Sorry for the late answer. This is most likely because there where problems when loading extension within a extension.json callback (BlueSpiceExtensions::onRegistration).

class BlueSpiceExtensions{
	public static function onRegistration(){

		ExtensionRegistry::getInstance()->clearQueue();

		require_once( __DIR__ . "/BlueSpiceExtensions.php" );

		//now manualy start ExtensionRegistry queue to load later added extensions
		ExtensionRegistry::getInstance()->loadFromQueue();
	}
}

This is still in use in REL1.27 but was changed for the upcoming version, as we removed the packaging of our extensions into one repo.
Would this make this task resolvable?

Pwirth claimed this task.

I resolved it, as it is not present in the new version of BlueSPice