Basic functionality
This commit is contained in:
22
app/modules/Front/BaseFrontPresenter.php
Executable file
22
app/modules/Front/BaseFrontPresenter.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\Modules\Front;
|
||||
|
||||
use Nette;
|
||||
use Vite;
|
||||
|
||||
|
||||
/**
|
||||
* Base presenter for all application presenters.
|
||||
*/
|
||||
abstract class BaseFrontPresenter extends Nette\Application\UI\Presenter
|
||||
{
|
||||
public function __construct(
|
||||
private Vite $vite,
|
||||
) {}
|
||||
|
||||
public function beforeRender(): void
|
||||
{
|
||||
$this->template->vite = $this->vite;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user