Skip to content

Commit

Permalink
ApplicationExtension: presenters are not autowired
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 10, 2019
1 parent 4a21fa4 commit 10a5830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bridges/ApplicationDI/ApplicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public function beforeCompile()
}

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

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

0 comments on commit 10a5830

Please sign in to comment.