Skip to content

Commit 78890b1

Browse files
committed
Allow adding IPsr14Events via the dev tools
1 parent 29be8b0 commit 78890b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use wcf\data\event\listener\EventListenerEditor;
66
use wcf\data\event\listener\EventListenerList;
7+
use wcf\event\IPsr14Event;
78
use wcf\system\cache\builder\EventListenerCacheBuilder;
89
use wcf\system\devtools\pip\IDevtoolsPipEntryList;
910
use wcf\system\devtools\pip\IGuiPackageInstallationPlugin;
@@ -236,7 +237,7 @@ protected function addFormFields(IFormDocument $form)
236237
$eventClassNameField = $formField->getDocument()->getFormField('eventClassName');
237238
$eventClassName = $eventClassNameField->getValue();
238239

239-
if (\is_subclass_of($eventClassName, IEvent::class)) {
240+
if (\is_subclass_of($eventClassName, IEvent::class) || \is_subclass_of($eventClassName, IPsr14Event::class)) {
240241
if (!\is_callable(new $listenerClassName())) {
241242
$formField->addValidationError(
242243
new FormFieldValidationError(

0 commit comments

Comments
 (0)