diff --git a/src/Bridges/ApplicationLatte/Loader.php b/src/Bridges/ApplicationLatte/Loader.php deleted file mode 100644 index 3bb600129..000000000 --- a/src/Bridges/ApplicationLatte/Loader.php +++ /dev/null @@ -1,30 +0,0 @@ -presenter = $presenter; - } -} diff --git a/src/Bridges/ApplicationLatte/TemplateFactory.php b/src/Bridges/ApplicationLatte/TemplateFactory.php index c9d527c95..5ed5d1008 100644 --- a/src/Bridges/ApplicationLatte/TemplateFactory.php +++ b/src/Bridges/ApplicationLatte/TemplateFactory.php @@ -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); }