use wcf\system\event\IEventListener as ILegacyEventListener;
use wcf\system\event\listener\IParameterizedEventListener;
use wcf\system\exception\ImplementationException;
-use wcf\system\exception\SystemException;
use wcf\system\SingletonFactory;
/**
* @param string $className
* @param string $name
* @param array &$parameters
- * @throws SystemException
*/
protected function executeInheritedActions($eventObj, $eventName, $className, $name, array &$parameters)
{
}
if (!\class_exists($eventListener->listenerClassName)) {
- throw new SystemException("Unable to find class '" . $eventListener->listenerClassName . "'");
+ throw new \LogicException("Unable to find class '" . $eventListener->listenerClassName . "'.");
}
if (
!\is_subclass_of($eventListener->listenerClassName, IParameterizedEventListener::class)
$actionObj->execute($eventObj, $className, $eventName, $parameters);
if (!\is_array($parameters)) {
- throw new SystemException("'" . \get_class($actionObj) . "' breaks the '\$parameters' array!");
+ throw new \LogicException("'" . \get_class($actionObj) . "' breaks the '\$parameters' array.");
}
} elseif ($actionObj instanceof ILegacyEventListener) {
$actionObj->execute($eventObj, $className, $eventName);
* @param mixed $eventObj
* @param string $eventName
* @param array &$parameters
- * @throws SystemException
*/
public function fireAction($eventObj, $eventName, array &$parameters = [])
{