Files
Jonathan Miller 0d092f216f
Universal: Auto Version Bump / Version Bump (push) Successful in 16s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 17s
feat: full scaffolding — manifests, Extension, provider, SQL (9 tables), language files
2026-06-23 11:03:45 -05:00

28 lines
748 B
PHP

<?php
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 Moko\Plugin\System\MokoSuiteEvent\Extension\Event;
return new class implements ServiceProviderInterface
{
public function register(Container $container): void
{
$container->set(
PluginInterface::class,
function (Container $container) {
$dispatcher = $container->get(DispatcherInterface::class);
$plugin = new Event($dispatcher, (array) PluginHelper::getPlugin('system', 'mokosuiteevent'));
$plugin->setApplication(Factory::getApplication());
return $plugin;
}
);
}
};