File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Bridges/ApplicationDI Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function loadConfiguration()
54
54
{
55
55
$ config = $ this ->validateConfig ($ this ->defaults );
56
56
$ builder = $ this ->getContainerBuilder ();
57
- $ builder ->addExcludedClasses ([UI \Control ::class]);
57
+ $ builder ->addExcludedClasses ([UI \Presenter ::class]);
58
58
59
59
$ this ->invalidLinkMode = $ this ->debugMode
60
60
? UI \Presenter::INVALID_LINK_TEXTUAL | ($ config ['silentLinks ' ] ? 0 : UI \Presenter::INVALID_LINK_WARNING )
@@ -109,7 +109,7 @@ public function beforeCompile()
109
109
}
110
110
111
111
foreach ($ all as $ def ) {
112
- $ def ->setInject (TRUE )->setAutowired ( FALSE )-> addTag ('nette.presenter ' , $ def ->getClass ());
112
+ $ def ->setInject (TRUE )->addTag ('nette.presenter ' , $ def ->getClass ());
113
113
if (is_subclass_of ($ def ->getClass (), UI \Presenter::class)) {
114
114
$ def ->addSetup ('$invalidLinkMode ' , [$ this ->invalidLinkMode ]);
115
115
}
You can’t perform that action at this time.
0 commit comments