1 |
67c41231
|
Filip Jani
|
<?php
|
2 |
|
|
|
3 |
|
|
namespace App\Presenters;
|
4 |
|
|
|
5 |
dd522430
|
Filip Jani
|
use App\Components\IExampleGirdFactory;
|
6 |
67c41231
|
Filip Jani
|
use Nette;
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
final class HomepagePresenter extends Nette\Application\UI\Presenter
|
10 |
|
|
{
|
11 |
dd522430
|
Filip Jani
|
/** @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 |
67c41231
|
Filip Jani
|
}
|