From e9b92aea7bf7875dd02cde668b3134d0edea3f5b Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 08:24:19 +0000 Subject: [PATCH] Move call of register the template engine into App --- src/App.php | 2 ++ src/Core/Console.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index b5711589a0..03300a8a11 100644 --- a/src/App.php +++ b/src/App.php @@ -200,6 +200,8 @@ class App $this->registerErrorHandler(); + Core\Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine'); + (new \Friendica\Core\Console($this->container, $argv))->execute(); } diff --git a/src/Core/Console.php b/src/Core/Console.php index 760b2542cd..e957e9c1a1 100644 --- a/src/Core/Console.php +++ b/src/Core/Console.php @@ -166,8 +166,6 @@ HELP; $className = $this->subConsoles[$command]; - Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine'); - /** @var Console $subconsole */ $subconsole = $this->dice->create($className, [$subargs]);