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 blacklist functionality #4

Closed
wants to merge 3 commits into from
Closed

Conversation

MarsArt
Copy link
Contributor

@MarsArt MarsArt commented Jul 15, 2024

No description provided.

@MarsArt MarsArt requested a review from luckyraul July 15, 2024 07:12
$result = false;

$blacklist = $this->config->getBlacklist();
if ($blacklist) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invert

$blacklist = $this->config->getBlacklist();
if ($blacklist) {
$recipient = $this->getRecipient($message);
$patterns = array_unique(explode(PHP_EOL, $blacklist));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explode on possible null

@@ -67,6 +75,51 @@ public function aroundSendMessage(TransportInterface $subject, Closure $proceed)
}
}

/**
* @param EmailMessage $message
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpdoc == native types

@MarsArt MarsArt closed this Jul 16, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants