registerServiceProvider(new MVCFactory('Akeeba\\Component\\AkeebaBackup')); $container->registerServiceProvider(new ComponentDispatcherFactory('Akeeba\\Component\\AkeebaBackup')); $container->registerServiceProvider(new RouterFactory('\\Akeeba\\Component\\AkeebaBackup')); $container->registerServiceProvider(new CacheCleaner()); $container->registerServiceProvider(new ComponentParameters('com_akeebabackup')); $container->set( ComponentInterface::class, function (Container $container) { $component = new AkeebaBackupComponent($container->get(ComponentDispatcherFactoryInterface::class)); $component->setRegistry($container->get(Registry::class)); $component->setMVCFactory($container->get(MVCFactoryInterface::class)); $component->setRouterFactory($container->get(RouterFactoryInterface::class)); return $component; } ); } };