From d822ded3c27f0dfef792d8de7d0998bafa484000 Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Mon, 20 Aug 2018 13:24:10 +0200 Subject: [PATCH] Move com_tags to services (#21758) --- .../components/com_tags/dispatcher.php | 29 ----------- .../components/com_tags/services/provider.php | 52 +++++++++++++++++++ components/com_tags/dispatcher.php | 31 ----------- 3 files changed, 52 insertions(+), 60 deletions(-) delete mode 100644 administrator/components/com_tags/dispatcher.php create mode 100644 administrator/components/com_tags/services/provider.php delete mode 100644 components/com_tags/dispatcher.php diff --git a/administrator/components/com_tags/dispatcher.php b/administrator/components/com_tags/dispatcher.php deleted file mode 100644 index 1bf96596ea190..0000000000000 --- a/administrator/components/com_tags/dispatcher.php +++ /dev/null @@ -1,29 +0,0 @@ -registerServiceProvider(new MVCFactoryFactory('\\Joomla\\Component\\Tags')); + $container->registerServiceProvider(new DispatcherFactory('\\Joomla\\Component\\Tags')); + $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_tags/dispatcher.php b/components/com_tags/dispatcher.php deleted file mode 100644 index 6b79bdc6b9f6d..0000000000000 --- a/components/com_tags/dispatcher.php +++ /dev/null @@ -1,31 +0,0 @@ -