Remove deprecated handler.register
This commit is contained in:
@@ -9,4 +9,4 @@ from wo.cli.controllers.base import WOBaseController
|
||||
|
||||
|
||||
def load(app):
|
||||
handler.register(WOBaseController)
|
||||
app.handler.register(WOBaseController)
|
||||
|
||||
@@ -90,6 +90,6 @@ class WOCleanController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOCleanController)
|
||||
app.handler.register(WOCleanController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_clean_hook)
|
||||
|
||||
@@ -847,6 +847,6 @@ class WODebugController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WODebugController)
|
||||
app.handler.register(WODebugController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_debug_hook)
|
||||
|
||||
@@ -26,7 +26,7 @@ class WOImportslowlogController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOImportslowlogController)
|
||||
app.handler.register(WOImportslowlogController)
|
||||
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_import_slow_log_hook)
|
||||
|
||||
@@ -292,7 +292,7 @@ class WOInfoController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOInfoController)
|
||||
app.handler.register(WOInfoController)
|
||||
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_info_hook)
|
||||
|
||||
@@ -571,10 +571,10 @@ class WOLogMailController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOLogController)
|
||||
handler.register(WOLogShowController)
|
||||
handler.register(WOLogResetController)
|
||||
handler.register(WOLogGzipController)
|
||||
handler.register(WOLogMailController)
|
||||
app.handler.register(WOLogController)
|
||||
app.handler.register(WOLogShowController)
|
||||
app.handler.register(WOLogResetController)
|
||||
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)
|
||||
|
||||
@@ -40,6 +40,6 @@ class WOMaintenanceController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOMaintenanceController)
|
||||
app.handler.register(WOMaintenanceController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_maintenance_hook)
|
||||
|
||||
@@ -220,5 +220,5 @@ class WOSecureController(CementBaseController):
|
||||
|
||||
|
||||
def load(app):
|
||||
handler.register(WOSecureController)
|
||||
app.handler.register(WOSecureController)
|
||||
hook.register('post_argument_parsing', wo_secure_hook)
|
||||
|
||||
@@ -2049,11 +2049,11 @@ class WOSiteListController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOSiteController)
|
||||
handler.register(WOSiteCreateController)
|
||||
handler.register(WOSiteUpdateController)
|
||||
handler.register(WOSiteDeleteController)
|
||||
handler.register(WOSiteListController)
|
||||
handler.register(WOSiteEditController)
|
||||
app.handler.register(WOSiteController)
|
||||
app.handler.register(WOSiteCreateController)
|
||||
app.handler.register(WOSiteUpdateController)
|
||||
app.handler.register(WOSiteDeleteController)
|
||||
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)
|
||||
|
||||
@@ -998,9 +998,9 @@ class WOStackController(CementBaseController):
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
app.handler.register(WOStackController)
|
||||
handler.register(WOStackStatusController)
|
||||
handler.register(WOStackMigrateController)
|
||||
handler.register(WOStackUpgradeController)
|
||||
app.handler.register(WOStackStatusController)
|
||||
app.handler.register(WOStackMigrateController)
|
||||
app.handler.register(WOStackUpgradeController)
|
||||
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_stack_hook)
|
||||
|
||||
@@ -94,6 +94,6 @@ class WOSyncController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOSyncController)
|
||||
app.handler.register(WOSyncController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_sync_hook)
|
||||
|
||||
@@ -78,6 +78,6 @@ class WOUpdateController(CementBaseController):
|
||||
|
||||
def load(app):
|
||||
# register the plugin class.. this only happens if the plugin is enabled
|
||||
handler.register(WOUpdateController)
|
||||
app.handler.register(WOUpdateController)
|
||||
# register a hook (function) to run after arguments are parsed.
|
||||
hook.register('post_argument_parsing', wo_update_hook)
|
||||
|
||||
Reference in New Issue
Block a user