Install an extension using a install script and the Installer class:
$instanceInstaller = new Installer ();
if (! $instanceInstaller ->install ( $path )) {
}
Works
The installer now misses the database
[6.0] alpha 2
Probably related to:
Instead than force the extensions code to update, to avoid b/c break better to ensure the database can always be self referenced by the Installer as up to Joomla 5.4
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
maybe just a documentation update : add setDatabase before calling install method. Something like :
$instanceInstaller = new Installer ();
$instanceInstaller->setDatabase($this->db);
if (! $instanceInstaller ->install ( $path )) {
}
or, in libraries/src/installer, update Installer.php so that setDatabase is performed in construct function instead of getInstance
Note : in J5.3, setDatabase was performed in Adapter construct function.
That's missing in the new Installer construct function.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-07-01 10:12:53 |
Closed_By | ⇒ | alikon |
confirmed