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 d6989a2 commit d07e7fbCopy full SHA for d07e7fb
src/Application/UI/Component.php
@@ -73,6 +73,17 @@ public function getUniqueId(): string
73
}
74
75
76
+ protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
77
+ {
78
+ $res = parent::createComponent($name);
79
+ if (!$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
80
+ $type = get_class($res);
81
+ trigger_error("It seems that component '$name' of type $type is not intended to for in the Presenter.", E_USER_NOTICE);
82
+ }
83
+ return $res;
84
85
+
86
87
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
88
{
89
parent::validateParent($parent);
0 commit comments