From: Art4 Date: Thu, 26 Dec 2024 08:24:19 +0000 (+0000) Subject: Move call of register the template engine into App X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9b92aea7bf7875dd02cde668b3134d0edea3f5b;p=friendica.git Move call of register the template engine into App --- 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]);