carto_J5 to main #1

Merged
vincent.tisseyre merged 15 commits from carto_J5 into main 2024-11-12 12:53:09 +01:00
7 changed files with 85 additions and 3 deletions
Showing only changes of commit ece74b07fc - Show all commits

View File

@ -1,2 +0,0 @@
<html><body bgcolor="#FFFFFF"></body></html>
<!-- prevents web server from listing directory content -->

View File

@ -1 +0,0 @@
Hello World administration

View File

@ -0,0 +1,29 @@
<?php
defined('_JEXEC') or die;
use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;
use Joomla\CMS\Extension\ComponentInterface;
use Joomla\CMS\Extension\MVCComponent;
use Joomla\CMS\Extension\Service\Provider\ComponentDispatcherFactory;
use Joomla\CMS\Extension\Service\Provider\MVCFactory;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
return new class implements ServiceProviderInterface {
public function register(Container $container): void {
$container->registerServiceProvider(new MVCFactory('\\Digitanie\\Component\\Leaflet'));
$container->registerServiceProvider(new ComponentDispatcherFactory('\\Digitanie\\Component\\Leaflet'));
$container->set(
ComponentInterface::class,
function (Container $container) {
$component = new MVCComponent($container->get(ComponentDispatcherFactoryInterface::class));
$component->setMVCFactory($container->get(MVCFactoryInterface::class));
return $component;
}
);
}
};

View File

@ -0,0 +1,27 @@
<?php
namespace Digitanie\Component\Leaflet\Administrator\Controller;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\Controller\BaseController;
/**
* Default Controller of Leaflet component
*
* @package Joomla.Administrator
* @subpackage com_leaflet
*/
class DisplayController extends BaseController {
/**
* The default view for the display method.
*
* @var string
*/
protected $default_view = 'Leaflet';
public function display($cachable = false, $urlparams = array()) {
return parent::display($cachable, $urlparams);
}
}

View File

@ -0,0 +1,23 @@
<?php
namespace Digitanie\Component\Leaflet\Administrator\View\Leaflet;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
/**
* Main "Leaflet" Admin View
*/
class HtmlView extends BaseHtmlView {
/**
* Display the main "Leaflet" view
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
* @return void
*/
function display($tpl = null) {
parent::display($tpl);
}
}

View File

@ -0,0 +1,6 @@
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
?>
<h2>Leaflet administration</h2>