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()
5454 {
5555 $ config = $ this ->validateConfig ($ this ->defaults );
5656 $ builder = $ this ->getContainerBuilder ();
57- $ builder ->addExcludedClasses ([UI \Control ::class]);
57+ $ builder ->addExcludedClasses ([UI \Presenter ::class]);
5858
5959 $ this ->invalidLinkMode = $ this ->debugMode
6060 ? UI \Presenter::INVALID_LINK_TEXTUAL | ($ config ['silentLinks ' ] ? 0 : UI \Presenter::INVALID_LINK_WARNING )
@@ -109,7 +109,7 @@ public function beforeCompile()
109109 }
110110
111111 foreach ($ all as $ def ) {
112- $ def ->setInject (TRUE )->setAutowired ( FALSE )-> addTag ('nette.presenter ' , $ def ->getClass ());
112+ $ def ->setInject (TRUE )->addTag ('nette.presenter ' , $ def ->getClass ());
113113 if (is_subclass_of ($ def ->getClass (), UI \Presenter::class)) {
114114 $ def ->addSetup ('$invalidLinkMode ' , [$ this ->invalidLinkMode ]);
115115 }
You can’t perform that action at this time.
0 commit comments