1
|
<?php
|
2
|
|
3
|
namespace App\Presenters;
|
4
|
|
5
|
use App\Components\IExampleGirdFactory;
|
6
|
use Nette;
|
7
|
|
8
|
|
9
|
final class HomepagePresenter extends Nette\Application\UI\Presenter
|
10
|
{
|
11
|
/** @var IExampleGirdFactory */
|
12
|
private $exampleGridFactory;
|
13
|
|
14
|
public function __construct(IExampleGirdFactory $exampleGridFactory)
|
15
|
{
|
16
|
parent::__construct();
|
17
|
|
18
|
$this->exampleGridFactory = $exampleGridFactory;
|
19
|
}
|
20
|
|
21
|
public function actionDefault(){
|
22
|
|
23
|
}
|
24
|
|
25
|
public function createComponentDataGrid(){
|
26
|
return $this->exampleGridFactory->create();
|
27
|
}
|
28
|
}
|