From 2675f6cef7a0f54d9fbad87470f8f55af27d56be Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 21 Apr 2026 13:22:42 -0500 Subject: [PATCH] fix: implement InstallerScriptInterface for Joomla 6 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Script wasn't running — Joomla 6 requires InstallerScriptInterface. Also added debug file_put_contents to confirm execution. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/script.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/script.php b/src/script.php index 0a95e73..c6d0023 100644 --- a/src/script.php +++ b/src/script.php @@ -20,9 +20,10 @@ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Installer\InstallerAdapter; +use Joomla\CMS\Installer\InstallerScriptInterface; use Joomla\CMS\Log\Log; -class Tpl_MokocassiopeiaInstallerScript +class Tpl_MokocassiopeiaInstallerScript implements InstallerScriptInterface { private const MIN_PHP = '8.1.0'; private const MIN_JOOMLA = '4.4.0'; @@ -77,6 +78,13 @@ class Tpl_MokocassiopeiaInstallerScript public function postflight(string $type, InstallerAdapter $parent): bool { + // Debug: write directly to confirm script runs + @file_put_contents( + JPATH_ROOT . '/administrator/logs/bridge_debug.txt', + date('Y-m-d H:i:s') . " postflight called, type={$type}\n", + FILE_APPEND + ); + if ($type === 'update') { $this->log('=== MokoCassiopeia → MokoOnyx bridge ==='); $this->bridge();