Init
This commit is contained in:
24
app/Presenters/BasePresenter.php
Executable file
24
app/Presenters/BasePresenter.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Presenters;
|
||||
|
||||
use Nette;
|
||||
use Vite;
|
||||
|
||||
|
||||
/**
|
||||
* Base presenter for all application presenters.
|
||||
*/
|
||||
abstract class BasePresenter 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