Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Notification Channel Extender #2432

Merged
merged 15 commits into from
Nov 5, 2020
Prev Previous commit
Next Next commit
Tweak dockblock
  • Loading branch information
SychO9 committed Nov 1, 2020
commit cf4b021972462deb949d7a23c82a2a8439a25ef7
6 changes: 3 additions & 3 deletions src/Notification/Driver/NotificationDriverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
interface NotificationDriverInterface
{
/**
* Enqueues the job for this notification.
* Conditionally sends a notification to users, generally using a queue.
*
* @param BlueprintInterface $blueprint
* @param User[] $users
Expand All @@ -24,11 +24,11 @@ interface NotificationDriverInterface
public function send(BlueprintInterface $blueprint, array $users): void;

/**
* Logic for adding a user preference.
* Logic for registering a notification type, generally used for adding a user preference.
*
* @param string $blueprintClass
* @param bool $default
* @return void
*/
public function addUserPreference(string $blueprintClass, bool $default): void;
public function registerType(string $blueprintClass, bool $default): void;
}