Remove deprecated hook.register
This commit is contained in:
@@ -92,4 +92,4 @@ def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
app.handler.register(WOCleanController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_clean_hook)
|
||||
app.hook.register('post_argument_parsing', wo_clean_hook)
|
||||
|
||||
@@ -849,4 +849,4 @@ def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
app.handler.register(WODebugController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_debug_hook)
|
||||
app.hook.register('post_argument_parsing', wo_debug_hook)
|
||||
|
||||
@@ -29,4 +29,4 @@ def load(app):
|
||||
app.handler.register(WOImportslowlogController)
|
||||
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_import_slow_log_hook)
|
||||
app.hook.register('post_argument_parsing', wo_import_slow_log_hook)
|
||||
|
||||
@@ -295,4 +295,4 @@ def load(app):
|
||||
app.handler.register(WOInfoController)
|
||||
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_info_hook)
|
||||
app.hook.register('post_argument_parsing', wo_info_hook)
|
||||
|
||||
@@ -577,4 +577,4 @@ def load(app):
|
||||
app.handler.register(WOLogGzipController)
|
||||
app.handler.register(WOLogMailController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_log_hook)
|
||||
app.hook.register('post_argument_parsing', wo_log_hook)
|
||||
|
||||
@@ -42,4 +42,4 @@ def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
app.handler.register(WOMaintenanceController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_maintenance_hook)
|
||||
app.hook.register('post_argument_parsing', wo_maintenance_hook)
|
||||
|
||||
@@ -221,4 +221,4 @@ class WOSecureController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
app.handler.register(WOSecureController)
|
||||
hook.register('post_argument_parsing', wo_secure_hook)
|
||||
app.hook.register('post_argument_parsing', wo_secure_hook)
|
||||
|
||||
@@ -2056,4 +2056,4 @@ def load(app):
|
||||
app.handler.register(WOSiteListController)
|
||||
app.handler.register(WOSiteEditController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_site_hook)
|
||||
app.hook.register('post_argument_parsing', wo_site_hook)
|
||||
|
||||
@@ -1003,4 +1003,4 @@ def load(app):
|
||||
app.handler.register(WOStackUpgradeController)
|
||||
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_stack_hook)
|
||||
app.hook.register('post_argument_parsing', wo_stack_hook)
|
||||
|
||||
@@ -96,4 +96,4 @@ def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
app.handler.register(WOSyncController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_sync_hook)
|
||||
app.hook.register('post_argument_parsing', wo_sync_hook)
|
||||
|
||||
@@ -80,4 +80,4 @@ def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
app.handler.register(WOUpdateController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_update_hook)
|
||||
app.hook.register('post_argument_parsing', wo_update_hook)
|
||||
|
||||
Reference in New Issue
Block a user