diff --git a/com_leaflet/admin/.gitkeep b/com_leaflet/admin/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/com_leaflet/admin/index.html b/com_leaflet/admin/index.html deleted file mode 100644 index 6e4ffbf..0000000 --- a/com_leaflet/admin/index.html +++ /dev/null @@ -1,2 +0,0 @@ -
- \ No newline at end of file diff --git a/com_leaflet/admin/leaflet.php b/com_leaflet/admin/leaflet.php deleted file mode 100644 index 84e4380..0000000 --- a/com_leaflet/admin/leaflet.php +++ /dev/null @@ -1 +0,0 @@ -Hello World administration \ No newline at end of file diff --git a/com_leaflet/admin/services/provider.php b/com_leaflet/admin/services/provider.php new file mode 100644 index 0000000..905f288 --- /dev/null +++ b/com_leaflet/admin/services/provider.php @@ -0,0 +1,29 @@ +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; + } + ); + } +}; \ No newline at end of file diff --git a/com_leaflet/admin/src/Controller/DisplayController.php b/com_leaflet/admin/src/Controller/DisplayController.php new file mode 100644 index 0000000..4b1b41c --- /dev/null +++ b/com_leaflet/admin/src/Controller/DisplayController.php @@ -0,0 +1,27 @@ + +