Skip to content

Commit

Permalink
Switch to explicit presenters mapping
Browse files Browse the repository at this point in the history
remp/crm#441
  • Loading branch information
Matefko authored and rootpd committed Dec 28, 2020
1 parent 46914e6 commit 8af5d07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DI/PrivatbankarModuleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ public function loadConfiguration()
);
}

public function beforeCompile()
{
$builder = $this->getContainerBuilder();
// load presenters from extension to Nette
$builder->getDefinition($builder->getByType(\Nette\Application\IPresenterFactory::class))
->addSetup('setMapping', [['Privatbankar' => 'Crm\PrivatbankarModule\Presenters\*Presenter']]);
}

/**
* Return array of directories, that contain resources for translator.
* @return string[]
Expand Down

0 comments on commit 8af5d07

Please sign in to comment.