Skip to content
4 changes: 4 additions & 0 deletions libraries/src/Installer/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ public function __construct($basepath = __DIR__, $classprefix = '\\Joomla\\CMS\\
$this->loadAdapters();

$this->extension = Table::getInstance('Extension');

if ($this instanceof DatabaseAwareInterface) {
$this->setDatabase(Factory::getContainer()->get(DatabaseInterface::class));
}
}

/**
Expand Down
Loading