99871a2ff6
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Auto Version Bump / Version Bump (push) Successful in 7s
Generic: Project CI / Lint & Validate (push) Successful in 12s
Generic: Project CI / Tests (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
4 sub-extensions: com, system plugin, webservices, content plugin. 4 DB tables: forms, fields, submissions, notifications.
22 lines
821 B
PHP
22 lines
821 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
use Joomla\CMS\Extension\PluginInterface;
|
|
use Joomla\CMS\Plugin\PluginHelper;
|
|
use Joomla\DI\Container;
|
|
use Joomla\DI\ServiceProviderInterface;
|
|
use Joomla\Event\DispatcherInterface;
|
|
use MokoConsulting\Plugin\Content\MokoSuiteForms\Extension\MokoSuiteFormsContent;
|
|
|
|
return new class () implements ServiceProviderInterface {
|
|
public function register(Container $container): void {
|
|
$container->set(PluginInterface::class, function (Container $container) {
|
|
$plugin = new MokoSuiteFormsContent(
|
|
$container->get(DispatcherInterface::class),
|
|
(array) PluginHelper::getPlugin('content', 'mokosuiteforms')
|
|
);
|
|
$plugin->setApplication(\Joomla\CMS\Factory::getApplication());
|
|
return $plugin;
|
|
});
|
|
}
|
|
};
|