Skip to content

Commit

Permalink
Remove unused events from config
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Nov 10, 2023
1 parent 3e6fcfc commit 04de49d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php

use humhub\modules\space\widgets\Menu;
use humhub\modules\user\models\User;
use humhub\commands\IntegrityController;
use humhub\modules\content\widgets\WallEntryControls;
use humhub\modules\user\widgets\ProfileMenu;

/** @noinspection MissedFieldInspection */
return [
Expand All @@ -14,10 +12,8 @@
'events' => [
['class' => WallEntryControls::class, 'event' => WallEntryControls::EVENT_INIT, 'callback' => ['humhub\modules\polls\Events', 'onWallEntryControlsInit']],
['class' => User::class, 'event' => User::EVENT_BEFORE_DELETE, 'callback' => ['humhub\modules\polls\Events', 'onUserDelete']],
['class' => Menu::class, 'event' => Menu::EVENT_INIT, 'callback' => ['humhub\modules\polls\Events', 'onSpaceMenuInit']],
['class' => ProfileMenu::class, 'event' => ProfileMenu::EVENT_INIT, 'callback' => ['humhub\modules\polls\Events', 'onProfileMenuInit']],
['class' => IntegrityController::class, 'event' => IntegrityController::EVENT_ON_RUN, 'callback' => ['humhub\modules\polls\Events', 'onIntegrityCheck']],
['class' => 'humhub\modules\installer\controllers\ConfigController', 'event' => 'install_sample_data', 'callback' => ['humhub\modules\polls\Events', 'onSampleDataInstall']],
['class' => 'humhub\modules\rest\Module', 'event' => 'restApiAddRules', 'callback' => ['humhub\modules\polls\Events', 'onRestApiAddRules']],
]
];
];
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
1.3.4 (Unreleased)
----------------------
- Enh #127: Tests for `next` version
- Fix #128: Remove unused events from config

1.3.1 (May 26, 2023)
--------------------
Expand Down

0 comments on commit 04de49d

Please sign in to comment.