Via Composer
$ composer require zenify/modular-presenter-mappingRegister the extension in config.neon:
extensions:
- Zenify\ModularPresenterMapping\DI\ModularPresenterMappingExtensionTo add own presenter mapping, create class that will implement Zenify\ModularPresenterMapping\Contract\Application\PresenterMappingProviderInterface
use Zenify\ModularPresenterMapping\Contract\Application\PresenterMappingProviderInterface;
final class MyExtensionPresenterMapping implements PresenterMappingProviderInterface
{
/**
* {@inheritdoc}
*/
public function provide()
{
return [
// module => it's namespace, "*" is for presenter name
'PayPal' => 'My\Package\Presenter\*Presenter'
];
}
}Then in redirect:
$this->redirect('PayPal:Payment');or template:
<a n:href="PayPal:Payment">Pay!</a>would go to: My\Package\Presenter\PaymentPresenter.
$ phpunitPlease see CONTRIBUTING for details.