From aa62e9207a4da479cf94012177afe22be6c3f8c8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:58:06 +0000 Subject: [PATCH] Fix class not found error by adding proper namespace Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- src/plugins/system/mokowaasbrand/services/provider.php | 3 ++- .../Extension/{mokowaasbrand.php => MokoWaaSBrand.php} | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) rename src/plugins/system/mokowaasbrand/src/Extension/{mokowaasbrand.php => MokoWaaSBrand.php} (91%) diff --git a/src/plugins/system/mokowaasbrand/services/provider.php b/src/plugins/system/mokowaasbrand/services/provider.php index f2a9c834..481ab323 100644 --- a/src/plugins/system/mokowaasbrand/services/provider.php +++ b/src/plugins/system/mokowaasbrand/services/provider.php @@ -30,6 +30,7 @@ use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; +use Moko\Plugin\System\MokoWaaSBrand\Extension\MokoWaaSBrand; return new class () implements ServiceProviderInterface { /** @@ -46,7 +47,7 @@ return new class () implements ServiceProviderInterface { $container->set( PluginInterface::class, function (Container $container) { - $plugin = new PlgSystemMokoWaaSBrand( + $plugin = new MokoWaaSBrand( $container->get(DispatcherInterface::class), (array) PluginHelper::getPlugin('system', 'mokowaasbrand') ); diff --git a/src/plugins/system/mokowaasbrand/src/Extension/mokowaasbrand.php b/src/plugins/system/mokowaasbrand/src/Extension/MokoWaaSBrand.php similarity index 91% rename from src/plugins/system/mokowaasbrand/src/Extension/mokowaasbrand.php rename to src/plugins/system/mokowaasbrand/src/Extension/MokoWaaSBrand.php index 69b62652..f569cac4 100644 --- a/src/plugins/system/mokowaasbrand/src/Extension/mokowaasbrand.php +++ b/src/plugins/system/mokowaasbrand/src/Extension/MokoWaaSBrand.php @@ -17,11 +17,13 @@ * INGROUP: MokoWaaS-Brand * REPO: https://github.com/mokoconsulting-tech/mokowaasbrand * VERSION: 01.04.00 - * PATH: /src/mokowaasbrand.php - * BRIEF: Main plugin file for MokoWaaS-Brand system plugin + * PATH: /src/plugins/system/mokowaasbrand/src/Extension/MokoWaaSBrand.php + * BRIEF: Main plugin class for MokoWaaS-Brand system plugin * NOTE: Handles Joomla system events for rebranding functionality */ +namespace Moko\Plugin\System\MokoWaaSBrand\Extension; + defined('_JEXEC') or die; use Joomla\CMS\Plugin\CMSPlugin; @@ -34,7 +36,7 @@ use Joomla\CMS\Plugin\CMSPlugin; * * @since 01.04.00 */ -class PlgSystemMokoWaaSBrand extends CMSPlugin +class MokoWaaSBrand extends CMSPlugin { /** * Load the language file on instantiation.