2026-06-04 11:20:35 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2026-06-16 12:06:01 -05:00
|
|
|
* @package MokoSuiteBackup
|
|
|
|
|
* @subpackage plg_webservices_mokosuitebackup
|
2026-06-04 11:20:35 -05:00
|
|
|
* @author Moko Consulting <hello@mokoconsulting.tech>
|
|
|
|
|
* @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;
|
2026-06-16 12:06:01 -05:00
|
|
|
use Joomla\Plugin\WebServices\MokoSuiteBackup\Extension\MokoSuiteBackupWebServices;
|
2026-06-04 11:20:35 -05:00
|
|
|
|
|
|
|
|
return new class () implements ServiceProviderInterface {
|
|
|
|
|
public function register(Container $container): void
|
|
|
|
|
{
|
|
|
|
|
$container->set(
|
|
|
|
|
PluginInterface::class,
|
|
|
|
|
function (Container $container) {
|
2026-06-16 12:06:01 -05:00
|
|
|
$plugin = new MokoSuiteBackupWebServices(
|
2026-06-04 11:20:35 -05:00
|
|
|
$container->get(DispatcherInterface::class),
|
2026-06-16 12:06:01 -05:00
|
|
|
(array) PluginHelper::getPlugin('webservices', 'mokosuitebackup')
|
2026-06-04 11:20:35 -05:00
|
|
|
);
|
|
|
|
|
$plugin->setApplication(Factory::getApplication());
|
|
|
|
|
|
|
|
|
|
return $plugin;
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
};
|