Skip to content

Commit

Permalink
TemplateFactory: remove unused Loader (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar authored and dg committed Sep 18, 2019
1 parent 3a65046 commit 67f45fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
30 changes: 0 additions & 30 deletions src/Bridges/ApplicationLatte/Loader.php

This file was deleted.

4 changes: 0 additions & 4 deletions src/Bridges/ApplicationLatte/TemplateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public function createTemplate(UI\Control $control = null): UI\ITemplate
$template = new $this->templateClass($latte);
$presenter = ($control && $control->hasPresenter()) ? $control->getPresenter() : null;

if ($control instanceof UI\Presenter) {
$latte->setLoader(new Loader($control));
}

if ($latte->onCompile instanceof \Traversable) {
$latte->onCompile = iterator_to_array($latte->onCompile);
}
Expand Down

0 comments on commit 67f45fb

Please sign in to comment.