We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24984e4 commit 908a0dbCopy full SHA for 908a0db
src/Application/UI/Component.php
@@ -73,6 +73,18 @@ public function getUniqueId(): string
73
}
74
75
76
+
77
+ protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
78
+ {
79
+ $res = parent::createComponent($name);
80
+ if (!$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
81
+ $type = get_class($res);
82
+ trigger_error("It seems that component '$name' of type $type is not intended to for in the Presenter.", E_USER_NOTICE);
83
+ }
84
+ return $res;
85
86
87
88
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
89
{
90
parent::validateParent($parent);
0 commit comments