Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 10a5830

Browse files
committedFeb 10, 2019
ApplicationExtension: presenters are not autowired
1 parent 4a21fa4 commit 10a5830

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/Bridges/ApplicationDI/ApplicationExtension.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ public function beforeCompile()
115115
}
116116

117117
foreach ($all as $def) {
118-
$def->addTag(Nette\DI\Extensions\InjectExtension::TAG_INJECT);
118+
$def->addTag(Nette\DI\Extensions\InjectExtension::TAG_INJECT)
119+
->setAutowired(false);
119120

120121
if (is_subclass_of($def->getType(), UI\Presenter::class)) {
121122
$def->addSetup('$invalidLinkMode', [$this->invalidLinkMode]);

0 commit comments

Comments
 (0)
Please sign in to comment.