lua: rename Plugin() to Plugin.find()

Plugin() is confusing because it's not a constructor, it just finds
an existing instance of a plugin object. All other camel-case
functions are constructors in the current lua API.
This commit is contained in:
George Kiagiadakis
2021-05-07 11:53:47 +03:00
parent e4d8f2a2df
commit fc5aa7db1f
7 changed files with 13 additions and 8 deletions

View File

@@ -144,7 +144,7 @@ SANDBOX_EXPORT = {
GLib = GLib,
Log = WpLog,
Core = WpCore,
Plugin = WpPlugin_find,
Plugin = WpPlugin,
ObjectManager = WpObjectManager_new,
Interest = WpObjectInterest_new,
SessionItem = WpSessionItem_new,