Fix class not found error by adding proper namespace

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-26 19:58:06 +00:00
parent 869ff9839c
commit aa62e9207a
2 changed files with 7 additions and 4 deletions
@@ -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')
);
@@ -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.