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]);