diff --git a/administrator/components/com_wrapper/services/provider.php b/administrator/components/com_wrapper/services/provider.php new file mode 100644 index 0000000000000..f9b9d2bb07f1b --- /dev/null +++ b/administrator/components/com_wrapper/services/provider.php @@ -0,0 +1,52 @@ +registerServiceProvider(new MVCFactoryFactory('\\Joomla\\Component\\Wrapper')); + $container->registerServiceProvider(new DispatcherFactory('\\Joomla\\Component\\Wrapper')); + $container->set( + ComponentInterface::class, + function (Container $container) + { + $component = new MVCComponent($container->get(DispatcherFactoryInterface::class)); + $component->setMvcFactoryFactory($container->get(MVCFactoryFactoryInterface::class)); + + return $component; + } + ); + } +}; diff --git a/components/com_wrapper/dispatcher.php b/components/com_wrapper/dispatcher.php deleted file mode 100644 index 6b6d718a83879..0000000000000 --- a/components/com_wrapper/dispatcher.php +++ /dev/null @@ -1,29 +0,0 @@ -