Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b81f638d

Přidáno uživatelem Petr Lukašík před více než 5 roky(ů)

Re #7508 Předěláno jako komponenta, upraven JS

Zobrazit rozdíly:

app/FrontModule/presenters/TransliterationPresenter.php
4 4

  
5 5

  
6 6

  
7
use App\FrontModule\Components\IKeyboard;
7 8
use App\FrontModule\Components\ITransliterationSearchFormFactory;
8 9
use App\FrontModule\Components\ITransliterationSearchResultListFactory;
9 10
use App\Model\Repository\LineRepository;
......
36 37
    /** @var ITransliterationSearchResultListFactory */
37 38
    private $transliterationSearchResultListFactory;
38 39

  
40
    /** @var IKeyboard */
41
    private $keyboard;
42

  
39 43
    public function __construct(
40 44
        ITransliterationSearchFormFactory $transliterationSearchFormFactory,
41 45
        TransliterationRepository $transliterationRepository,
......
43 47
        LitReferenceRepository $litReferenceRepository,
44 48
        RevHistoryRepository $revHistoryRepository,
45 49
        LineRepository $lineRepository,
46
        ITransliterationSearchResultListFactory $transliterationSearchResultListFactory
50
        ITransliterationSearchResultListFactory $transliterationSearchResultListFactory,
51
        IKeyboard $keyboard
47 52
    )
48 53
    {
49 54
        parent::__construct();
......
55 60
        $this->revHistoryRepository = $revHistoryRepository;
56 61
        $this->lineRepository = $lineRepository;
57 62
        $this->transliterationSearchResultListFactory = $transliterationSearchResultListFactory;
63
        $this->keyboard = $keyboard;
58 64
    }
59 65

  
60 66
    public function actionView($id)
......
87 93
    {
88 94
        return $this->transliterationSearchResultListFactory->create();
89 95
    }
96

  
97
    public function createComponentKeyboard()
98
    {
99
        return $this->keyboard->create();
100
    }
90 101
}

Také k dispozici: Unified diff