Skip to content

Commit

Permalink
ApplicationExtension: Application & presenters marked as exported type
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 2, 2019
1 parent b265e1e commit e0b2675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Bridges/ApplicationDI/ApplicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function loadConfiguration()
if ($config->debugger) {
$application->addSetup([Nette\Bridges\ApplicationTracy\RoutingPanel::class, 'initializePanel']);
}
$this->compiler->addExportedType(Nette\Application\Application::class);

$touch = $this->debugMode && $config->scanDirs && $this->tempDir ? $this->tempDir . '/touch' : null;
$presenterFactory = $builder->addDefinition($this->prefix('presenterFactory'))
Expand Down Expand Up @@ -124,6 +125,7 @@ public function beforeCompile()
if (is_subclass_of($def->getType(), UI\Presenter::class) && $def instanceof Definitions\ServiceDefinition) {
$def->addSetup('$invalidLinkMode', [$this->invalidLinkMode]);
}
$this->compiler->addExportedType($def->getType());
}
}

Expand Down

0 comments on commit e0b2675

Please sign in to comment.