Delete old plugin file

This commit is contained in:
Tuan Pham Ngoc 2023-03-16 17:58:41 +07:00
parent 510c296a7a
commit a07ab47744
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@ class Com_WeblinksInstallerScript
'/modules/mod_weblinks/mod_weblinks.php', '/modules/mod_weblinks/mod_weblinks.php',
'/plugins/search/weblinks/weblinks.php', '/plugins/search/weblinks/weblinks.php',
'/plugins/finder/weblinks/weblinks.php', '/plugins/finder/weblinks/weblinks.php',
'/plugins/editors-xtd/weblink/weblink.php',
]; ];
$folders = [ $folders = [

View File

@ -33,12 +33,13 @@ return new class () implements ServiceProviderInterface {
$container->set( $container->set(
PluginInterface::class, PluginInterface::class,
function (Container $container) { function (Container $container) {
$app = Factory::getApplication();
$dispatcher = $container->get(DispatcherInterface::class); $dispatcher = $container->get(DispatcherInterface::class);
return new Weblink( return new Weblink(
$dispatcher, $dispatcher,
(array) PluginHelper::getPlugin('editors-xtd', 'weblink'), (array) PluginHelper::getPlugin('editors-xtd', 'weblink'),
Factory::getApplication() $app
); );
} }
); );