subscribe('Flarum\Core\Handlers\Events\DiscussionRenamedNotifier'); $notifier->registerMethod('alert', 'Flarum\Core\Notifications\Senders\NotificationAlerter'); $notifier->registerMethod('email', 'Flarum\Core\Notifications\Senders\NotificationEmailer'); $this->extend( (new NotificationType('Flarum\Core\Notifications\Types\DiscussionRenamedNotification'))->enableByDefault('alert') ); } public function register() { $this->app->bind( 'Flarum\Core\Repositories\NotificationRepositoryInterface', 'Flarum\Core\Repositories\EloquentNotificationRepository' ); $this->app->singleton('Flarum\Core\Notifications\Notifier'); $this->app->alias('Flarum\Core\Notifications\Notifier', 'flarum.notifier'); } }