* @copyright Copyright (C) 2026 Moko Consulting. All rights reserved. * @license GNU General Public License version 3 or later; see LICENSE */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\WebServices\MokoSuiteBackup\Extension\MokoSuiteBackupWebServices; return new class () implements ServiceProviderInterface { public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $plugin = new MokoSuiteBackupWebServices( $container->get(DispatcherInterface::class), (array) PluginHelper::getPlugin('webservices', 'mokosuitebackup') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } };