Skip to content

Commit 67f45fb

Browse files
mabardg
authored andcommitted
TemplateFactory: remove unused Loader (#232)
1 parent 3a65046 commit 67f45fb

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/Bridges/ApplicationLatte/Loader.php

-30
This file was deleted.

src/Bridges/ApplicationLatte/TemplateFactory.php

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ public function createTemplate(UI\Control $control = null): UI\ITemplate
6060
$template = new $this->templateClass($latte);
6161
$presenter = ($control && $control->hasPresenter()) ? $control->getPresenter() : null;
6262

63-
if ($control instanceof UI\Presenter) {
64-
$latte->setLoader(new Loader($control));
65-
}
66-
6763
if ($latte->onCompile instanceof \Traversable) {
6864
$latte->onCompile = iterator_to_array($latte->onCompile);
6965
}

0 commit comments

Comments
 (0)