{
$this->setupContainerForAddons();
+ $this->registerTemplateEngine();
+
(\Friendica\Core\Console::create($this->container, $argv))->execute();
}
$this->container->setup(LogChannel::AUTH_JABBERED, false);
+ $this->registerTemplateEngine();
+
/** @var BasePath */
$basePath = $this->container->create(BasePath::class);
* @deprecated
*
* @param string $logChannel The Log Channel of this call
- * @param bool $withTemplateEngine true, if the template engine should be set too
*
* @return void
*/
- public function setup(string $logChannel = LogChannel::DEFAULT, bool $withTemplateEngine = true): void;
+ public function setup(string $logChannel = LogChannel::DEFAULT): void;
/**
* Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied
namespace Friendica\Core;
use Dice\Dice;
-use Friendica\Core\Addon\Capability\ICanLoadAddons;
use Friendica\Core\Logger\Capability\LogChannel;
use Friendica\Core\Logger\Handler\ErrorHandler;
use Friendica\DI;
* @deprecated
*
* @param string $logChannel The Log Channel of this call
- * @param bool $withTemplateEngine true, if the template engine should be set too
*
* @return void
*/
- public function setup(string $logChannel = LogChannel::DEFAULT, bool $withTemplateEngine = true): void
+ public function setup(string $logChannel = LogChannel::DEFAULT): void
{
$this->setupContainerForLogger($logChannel);
$this->setupLegacyServiceLocator();
$this->registerErrorHandler();
-
- if ($withTemplateEngine) {
- $this->registerTemplateEngine();
- }
}
/**
{
ErrorHandler::register($this->container->create(LoggerInterface::class));
}
-
- private function registerTemplateEngine(): void
- {
- Renderer::registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');
- }
}