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