use new addBheviors method

master
Jean-Christian Paul Denis 2023-01-30 19:16:53 +01:00
parent 9f06a49d59
commit 68bcb0c060
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 9 additions and 7 deletions

View File

@ -34,13 +34,15 @@ Clearbricks::lib()->autoload([
'advancedCleanerVars' => __DIR__ . '/inc/lib.advanced.cleaner.php',
]);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerVersions', 'create']);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerSettings', 'create']);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerTables', 'create']);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerThemes', 'create']);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerPlugins', 'create']);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerCaches', 'create']);
dcCore::app()->addBehavior('advancedCleanerAdd', ['advancedCleanerVars', 'create']);
dcCore::app()->addBehaviors([
'advancedCleanerAdd' => ['advancedCleanerVersions', 'create'],
'advancedCleanerAdd' => ['advancedCleanerSettings', 'create'],
'advancedCleanerAdd' => ['advancedCleanerTables', 'create'],
'advancedCleanerAdd' => ['advancedCleanerThemes', 'create'],
'advancedCleanerAdd' => ['advancedCleanerPlugins', 'create'],
'advancedCleanerAdd' => ['advancedCleanerCaches', 'create'],
'advancedCleanerAdd' => ['advancedCleanerVars', 'create'],
]);
if (defined('ACTIVITY_REPORT_V2')) {
dcAdvancedCleanerActivityReportBehaviors::add();