mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Move setupContainerForAddons() into App
This commit is contained in:
parent
e899127137
commit
768d7961a6
2 changed files with 17 additions and 9 deletions
|
@ -49,7 +49,6 @@ final class DiceContainer implements Container
|
|||
*/
|
||||
public function setup(string $logChannel = LogChannel::DEFAULT, bool $withTemplateEngine = true): void
|
||||
{
|
||||
$this->setupContainerForAddons();
|
||||
$this->setupContainerForLogger($logChannel);
|
||||
$this->setupLegacyServiceLocator();
|
||||
$this->registerErrorHandler();
|
||||
|
@ -85,14 +84,6 @@ final class DiceContainer implements Container
|
|||
$this->container = $this->container->addRule($name, $rule);
|
||||
}
|
||||
|
||||
private function setupContainerForAddons(): void
|
||||
{
|
||||
/** @var ICanLoadAddons $addonLoader */
|
||||
$addonLoader = $this->container->create(ICanLoadAddons::class);
|
||||
|
||||
$this->container = $this->container->addRules($addonLoader->getActiveAddonConfig('dependencies'));
|
||||
}
|
||||
|
||||
private function setupContainerForLogger(string $logChannel): void
|
||||
{
|
||||
$this->container = $this->container->addRule(LoggerInterface::class, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue