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