Skip to content

Commit 5237fd7

Browse files
committed
Revert "Presenter: invalid component name in signal throws BadSignalException"
It is not needed after nette/component-model#588b5a2a6 This reverts commit f4f7f10.
1 parent c124b15 commit 5237fd7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Application/UI/Presenter.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,9 @@ public function processSignal()
314314
return;
315315
}
316316

317-
try {
318-
$component = $this->signalReceiver === '' ? $this : $this->getComponent($this->signalReceiver, FALSE);
319-
} catch (Nette\InvalidArgumentException $e) {
320-
}
321-
322-
if (isset($e) || $component === NULL) {
323-
throw new BadSignalException("The signal receiver component '$this->signalReceiver' is not found.", NULL, isset($e) ? $e : NULL);
317+
$component = $this->signalReceiver === '' ? $this : $this->getComponent($this->signalReceiver, FALSE);
318+
if ($component === NULL) {
319+
throw new BadSignalException("The signal receiver component '$this->signalReceiver' is not found.");
324320

325321
} elseif (!$component instanceof ISignalReceiver) {
326322
throw new BadSignalException("The signal receiver component '$this->signalReceiver' is not ISignalReceiver implementor.");

0 commit comments

Comments
 (0)