Skip to content

Commit

Permalink
chore: inject SettingsRepositoryInterface
Browse files Browse the repository at this point in the history
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
  • Loading branch information
davwheat and SychO9 committed Aug 15, 2022
1 parent d684031 commit 7a29602
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions extensions/subscriptions/src/Job/SendReplyNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ public function __construct(Post $post, $lastPostNumber)
$this->lastPostNumber = $lastPostNumber;
}

public function handle(NotificationSyncer $notifications)
public function handle(NotificationSyncer $notifications, SettingsRepositoryInterface $settings)
{
/**
* @var SettingsRepositoryInterface
*/
$settings = resolve(SettingsRepositoryInterface::class);
$post = $this->post;
$discussion = $post->discussion;
$defaultNotifyCriteria = $settings->get('flarum-subscriptions.notification_criteria');
Expand Down

0 comments on commit 7a29602

Please sign in to comment.