Move Addon/Hook dependency where it belongs :)

This commit is contained in:
Philipp 2025-01-02 00:48:02 +01:00
parent 96332720e5
commit 1f9e1285af
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 4 additions and 3 deletions

View file

@ -214,9 +214,6 @@ class App
$this->registerTemplateEngine();
Addon::loadAddons();
Hook::loadHooks();
(new \Friendica\Core\Console($this->container, $argv))->execute();
}

View file

@ -13,6 +13,7 @@ use Friendica\App\Mode;
use Friendica\Core\Addon;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Asika\SimpleConsole\Console;
use Friendica\Core\Hook;
use Friendica\Core\KeyValueStorage\Capability\IManageKeyValuePairs;
use Friendica\Protocol\ATProtocol\Jetstream;
use Friendica\System\Daemon as SysDaemon;
@ -94,6 +95,9 @@ HELP;
);
}
Addon::loadAddons();
Hook::loadHooks();
if (!Addon::isEnabled('bluesky')) {
throw new RuntimeException("Bluesky has to be enabled.\n");
}