Skip to content

Commit 6330bb6

Browse files
Bernhard Schmittmficzel
authored andcommitted
Remove erroneous class check
1 parent f8f35a7 commit 6330bb6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Neos.Flow/Classes/SignalSlot/Dispatcher.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ private function connectSignalToSlot(string $signalClassName, string $signalName
119119
$object = $slotClassNameOrObject;
120120
$method = ($slotClassNameOrObject instanceof \Closure) ? '__invoke' : $slotMethodName;
121121
} else {
122-
if (!class_exists($slotClassNameOrObject)) {
123-
throw new \Exception('Unkown class ' . $slotClassNameOrObject, 1743926351);
124-
}
125122
if ($slotMethodName === '') {
126123
throw new \InvalidArgumentException('The slot method name must not be empty (except for closures).', 1229531659);
127124
}

0 commit comments

Comments
 (0)